View Source Dealcloud.Auth (dealcloud v0.4.0)

Handles authentication with Dealcloud's API

Link to this section Summary

Functions

Refreshes tokens

Generates new token

Link to this section Types

Specs

t() :: %Dealcloud.Auth{
  access_token: String.t(),
  client_id: String.t(),
  client_secret: String.t(),
  data_url: String.t(),
  expires_in: integer(),
  marketing_url: String.t(),
  refresh_token: String.t(),
  schema_url: String.t(),
  site: String.t(),
  token_type: String.t(),
  token_url: String.t(),
  user_url: String.t()
}

Link to this section Functions

Specs

refresh(t()) :: t()

Refreshes tokens

Examples

Dealcloud.Auth.refresh(%Dealcloud.Auth{})

Specs

token(t()) :: t()

Generates new token

Examples

Dealcloud.Auth.token(%Dealcloud.Auth{})