Method: OpenapiClient::AuthenticationApi#authentication_access_tokens_post

Defined in:
lib/openapi_client/api/authentication_api.rb

#authentication_access_tokens_post(content_type, client_request_id, api_key, timestamp, access_token_request, opts = {}) ⇒ AccessTokenResponse

Generate an access token for user authentication. This is the access token generation call for authorizing subsequent financial transactions. A valid access token is required for web client requests.

Parameters:

  • content_type (String)

    Content type.

  • client_request_id (String)

    A client-generated ID for request tracking and signature creation, unique per request. This is also used for idempotency control. We recommend 128-bit UUID format.

  • api_key (String)

    Key given to merchant after boarding associating their requests with the appropriate app in Apigee.

  • timestamp (Integer)

    Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins).

  • access_token_request (AccessTokenRequest)

    Access token request

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :message_signature (String)

    Used to ensure the request has not been tampered with during transmission. The Message-Signature is the Base64 encoded HMAC hash (SHA256 algorithm with the API Secret as the key.) For more information, refer to the supporting documentation on the Developer Portal.

Returns:



32
33
34
35
# File 'lib/openapi_client/api/authentication_api.rb', line 32

def authentication_access_tokens_post(content_type, client_request_id, api_key, timestamp, access_token_request, opts = {})
  data, _status_code, _headers = authentication_access_tokens_post_with_http_info(content_type, client_request_id, api_key, timestamp, access_token_request, opts)
  data
end