Paypal.Auth.Access (Paypal v0.1.1)
View SourceThe access structure has the information for accessing to the rest of the requests and the information about the expiration of the token.
Summary
Functions
Perform the transformation of the input data from the Paypal server to the access struct.
Types
@type t() :: %Paypal.Auth.Access{ access_token: String.t() | nil, app_id: String.t() | nil, expires_in: integer() | nil, nonce: String.t() | nil, scope: String.t() | nil, token_type: String.t() | nil }
The information stored inside of the access structure is the following:
scopeis a list of URLs we can access or use with the access token.access_tokenis the hash we need for the other requests.token_typeis the type of the token generated. Usually it'sBearer.app_idis the ID of the application.expires_inis the number of seconds for expiring the token.nonceis the nonce used.