dwolla v1.0.1 Dwolla.Token View Source

Functions for Dwolla OAuth 2 endpoint.

Link to this section Summary

Functions

Gets an access token from application credentials

Link to this section Types

Link to this type

cred() View Source
cred() :: %{required(atom()) => String.t()}

Link to this type

t() View Source
t() :: %Dwolla.Token{
  access_token: String.t(),
  expires_in: integer(),
  token_type: String.t()
}

Link to this section Functions

Link to this function

get(cred \\ Dwolla.get_cred()) View Source
get(cred() | nil) :: {:ok, Dwolla.Token.t()} | {:error, error()}

Gets an access token from application credentials.