Method: OpenapiClient::ManagementApi#token

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

#token(token_request, opts = {}) ⇒ TokenResponse

Create token Exchange an ‘authorization_code` for an `access_token` after receiving on from the `redirect_uri` you specifiy after a successful user connection

Parameters:

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

    the optional parameters

Returns:



198
199
200
201
# File 'lib/openapi_client/api/management_api.rb', line 198

def token(token_request, opts = {})
  data, _status_code, _headers = token_with_http_info(token_request, opts)
  data
end