View Source Discovergy.Client (discovergy v0.6.0)
A Discovergy API Client
Summary
Functions
Authenticate with the Discovergy API using the email address and password of the user.
Creates a new Discovergy API client.
Types
@opaque t()
Functions
@spec login(t(), String.t(), String.t()) :: {:ok, t()} | {:error, Discovergy.Error.t()}
Authenticate with the Discovergy API using the email address and password of the user.
Examples
iex> {:ok, client} = Discovergy.Client.new()
...> |> Discovergy.Client.login(email, password)
{:ok, %Discovergy.Client{}}
Creates a new Discovergy API client.
Options
:base_url
- the base URL for all endpoints (default:https://api.discovergy.com/public/v1
)
Examples
iex> client = Discovergy.Client.new()
%Discovergy.Client{}