Ex.Pnut v0.1.0 ExPnut.Client View Source

Create a new ExPnut client. This is necessary to use the rest of ExPnut library.

Link to this section Summary

Link to this section Types

Link to this type

auth() View Source
auth() :: %{user: binary(), password: binary()} | %{access_token: binary()}

Link to this type

t() View Source
t() :: %ExPnut.Client{auth: auth() | nil, endpoint: binary()}

Link to this section Functions

Link to this function

new(access_token) View Source
new(binary()) :: t()
new(map()) :: t()
new(map()) :: t()

Link to this function

new(access_token, endpoint) View Source
new(binary(), binary()) :: t()