SMSFactor.APIToken (SMSFactor v0.5.0)

View Source

Wrappers around API Token section of SMSFactor API.

Summary

Types

token_params()

@type token_params() :: %{token: %{name: String.t()}}

Functions

create_sub_account_token(client, sub_account_id, params)

@spec create_sub_account_token(Tesla.Client.t(), integer(), token_params()) ::
  Tesla.Env.result()

create_token(client, params)

@spec create_token(Tesla.Client.t(), token_params()) :: Tesla.Env.result()

delete_token(client, token_id)

@spec delete_token(Tesla.Client.t(), integer()) :: Tesla.Env.result()

retrieve_tokens(client)

@spec retrieve_tokens(Tesla.Client.t()) :: Tesla.Env.result()