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. |
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
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
func (o *TokenRequest) GetClientId() string
GetClientId returns the ClientId field if non-nil, zero value otherwise.
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.
func (o *TokenRequest) SetClientId(v string)
SetClientId sets ClientId field to given value.
func (o *TokenRequest) GetClientSecret() string
GetClientSecret returns the ClientSecret field if non-nil, zero value otherwise.
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.
func (o *TokenRequest) SetClientSecret(v string)
SetClientSecret sets ClientSecret field to given value.
func (o *TokenRequest) GetGrantType() string
GetGrantType returns the GrantType field if non-nil, zero value otherwise.
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.
func (o *TokenRequest) SetGrantType(v string)
SetGrantType sets GrantType field to given value.
func (o *TokenRequest) GetCode() string
GetCode returns the Code field if non-nil, zero value otherwise.
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.
func (o *TokenRequest) SetCode(v string)
SetCode sets Code field to given value.
func (o *TokenRequest) GetRedirectUri() string
GetRedirectUri returns the RedirectUri field if non-nil, zero value otherwise.
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.
func (o *TokenRequest) SetRedirectUri(v string)
SetRedirectUri sets RedirectUri field to given value.