Discovergy.Client (discovergy v0.7.0)

View Source

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

t()

@opaque t()

Functions

login(client, email, password)

@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{}}

new(opts \\ [])

@spec new(Keyword.t()) :: t()

Creates a new Discovergy API client.

Options

  • :base_url - the base URL for all endpoints (default: https://api.inexogy.com/public/v1)

Examples

iex> client = Discovergy.Client.new()
%Discovergy.Client{}