GoogleApi.DeveloperConnect.V1.Model.FetchAccessTokenResponse (google_api_developer_connect v0.6.0)

View Source

Message for responding to getting an OAuth access token.

Attributes

  • exchangeError (type: GoogleApi.DeveloperConnect.V1.Model.ExchangeError.t, default: nil) - The error resulted from exchanging OAuth tokens from the service provider.
  • expirationTime (type: DateTime.t, default: nil) - Expiration timestamp. Can be empty if unknown or non-expiring.
  • scopes (type: list(String.t), default: nil) - The scopes of the access token.
  • token (type: String.t, default: nil) - The token content.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.DeveloperConnect.V1.Model.FetchAccessTokenResponse{
  exchangeError: GoogleApi.DeveloperConnect.V1.Model.ExchangeError.t() | nil,
  expirationTime: DateTime.t() | nil,
  scopes: [String.t()] | nil,
  token: String.t() | nil
}

Functions

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.