ExQuickBooks v0.6.0 ExQuickBooks.OAuth.AccessToken

OAuth 1.0a token/secret pair for authenticating API calls.

See ExQuickBooks.OAuth for documentation on how to obtain these tokens.

Structure

The token is technically a public/private key pair:

  • :token - The public key string.
  • :token_secret - The private key string.
  • :realm_id - ID of the Realm this token is associated with.

The token is sent with API requests, but the secret is only used to calculate the request signatures.

Storing the token

You can store the token as is if your storage supports maps (in a Postgres jsonb column, for example) or store the keys individually.

Summary

Types

t()
t() :: %ExQuickBooks.OAuth.AccessToken{realm_id: String.t, token: String.t, token_secret: String.t}