Skip to content

Latest commit

 

History

History
135 lines (72 loc) · 4.31 KB

TokenRequest.md

File metadata and controls

135 lines (72 loc) · 4.31 KB

TokenRequest

Properties

Name Type Description Notes
ClientId string The client ID you received when you first created the application
ClientSecret string The client secret. Since there can be multiple `client_secret`s (to allow for rotation of secrets without downtime to your customers), any current `client_secret` is valid Please email me after signup and I will set both your client secret and redirect_uri (required) when you reach out.
GrantType string This is a hardcoded value required by the OAuth 2.1 spec
Code string This is the code you received in the query string
RedirectUri string Indicates the URI to return the user to after authorization is complete, which is the endpoint on your server to receive the authorization_code. Must be identical to the redirect URI provided in the original link. Please email me after signup and I will set both your client secret and redirect_uri (required) when you reach out.

Methods

NewTokenRequest

func NewTokenRequest(clientId string, clientSecret string, grantType string, code string, redirectUri string, ) *TokenRequest

NewTokenRequest instantiates a new TokenRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewTokenRequestWithDefaults

func NewTokenRequestWithDefaults() *TokenRequest

NewTokenRequestWithDefaults instantiates a new TokenRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetClientId

func (o *TokenRequest) GetClientId() string

GetClientId returns the ClientId field if non-nil, zero value otherwise.

GetClientIdOk

func (o *TokenRequest) GetClientIdOk() (*string, bool)

GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetClientId

func (o *TokenRequest) SetClientId(v string)

SetClientId sets ClientId field to given value.

GetClientSecret

func (o *TokenRequest) GetClientSecret() string

GetClientSecret returns the ClientSecret field if non-nil, zero value otherwise.

GetClientSecretOk

func (o *TokenRequest) GetClientSecretOk() (*string, bool)

GetClientSecretOk returns a tuple with the ClientSecret field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetClientSecret

func (o *TokenRequest) SetClientSecret(v string)

SetClientSecret sets ClientSecret field to given value.

GetGrantType

func (o *TokenRequest) GetGrantType() string

GetGrantType returns the GrantType field if non-nil, zero value otherwise.

GetGrantTypeOk

func (o *TokenRequest) GetGrantTypeOk() (*string, bool)

GetGrantTypeOk returns a tuple with the GrantType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetGrantType

func (o *TokenRequest) SetGrantType(v string)

SetGrantType sets GrantType field to given value.

GetCode

func (o *TokenRequest) GetCode() string

GetCode returns the Code field if non-nil, zero value otherwise.

GetCodeOk

func (o *TokenRequest) GetCodeOk() (*string, bool)

GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCode

func (o *TokenRequest) SetCode(v string)

SetCode sets Code field to given value.

GetRedirectUri

func (o *TokenRequest) GetRedirectUri() string

GetRedirectUri returns the RedirectUri field if non-nil, zero value otherwise.

GetRedirectUriOk

func (o *TokenRequest) GetRedirectUriOk() (*string, bool)

GetRedirectUriOk returns a tuple with the RedirectUri field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetRedirectUri

func (o *TokenRequest) SetRedirectUri(v string)

SetRedirectUri sets RedirectUri field to given value.

[Back to Model list] [Back to API list] [Back to README]