ex_swift v0.2.0 ExSwift.Auth.Token

Authentication token struct with fields necessary to make API calls.

token and service_url fields are required and used by ExSwift.Request.

Link to this section Summary

Link to this section Types

Link to this type

t()
t() :: %ExSwift.Auth.Token{
  expires_at: DateTime.t(),
  issued_at: DateTime.t() | nil,
  service_url: String.t(),
  token: String.t()
}

Link to this section Functions

Link to this function

create(config)
create(ExSwift.Config.t()) :: {:ok, t()} | {:error, any()}

Create new auth token based on config

Link to this function

find_service_url(config, json)

Link to this function

to_struct(config, response)