Installation
The package can be installed from Hex PM by addingunkey_elixir_sdk
to your list of dependencies in mix.exs
:
Note: This project uses Elixir version 1.13
.
Start the GenServer
In order to start this package we can either start it under a supervision tree (most common). The GenServer takes a map with two properties.- token: Your Unkey root key used to make requests. You can create one here required
- base_url: The base URL endpoint you will be hitting i.e.
https://api.unkey.dev/v1/keys
(optional).
start_link
function instead.