ExQuickBooks v0.6.0 ExQuickBooks.OAuth.RequestToken

OAuth 1.0a token/secret pair for requesting an access token.

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.
  • :redirect_url - URL where you should redirect the user to continue authentication.

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

Storing the token

You can store this token in the user’s session until the OAuth callback. Make sure the session storage is encrypted.

Summary

Types

t()
t() :: %ExQuickBooks.OAuth.RequestToken{redirect_url: String.t, token: String.t, token_secret: String.t}