Skip to content

TokenResult

Properties

Name Type Description Notes
AccessToken Pointer to string Access token. Use in Authorization header as: AccessToken=<token> [optional]
ExpiresIn Pointer to int32 Token validity in seconds (7200 = 2 hours) [optional]
RefreshToken Pointer to string Single-use refresh token valid for 14 days [optional]
TokenType Pointer to string Token type (e.g. Bearer) [optional]

Methods

NewTokenResult

func NewTokenResult() *TokenResult

NewTokenResult instantiates a new TokenResult 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

NewTokenResultWithDefaults

func NewTokenResultWithDefaults() *TokenResult

NewTokenResultWithDefaults instantiates a new TokenResult 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

GetAccessToken

func (o *TokenResult) GetAccessToken() string

GetAccessToken returns the AccessToken field if non-nil, zero value otherwise.

GetAccessTokenOk

func (o *TokenResult) GetAccessTokenOk() (*string, bool)

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

SetAccessToken

func (o *TokenResult) SetAccessToken(v string)

SetAccessToken sets AccessToken field to given value.

HasAccessToken

func (o *TokenResult) HasAccessToken() bool

HasAccessToken returns a boolean if a field has been set.

GetExpiresIn

func (o *TokenResult) GetExpiresIn() int32

GetExpiresIn returns the ExpiresIn field if non-nil, zero value otherwise.

GetExpiresInOk

func (o *TokenResult) GetExpiresInOk() (*int32, bool)

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

SetExpiresIn

func (o *TokenResult) SetExpiresIn(v int32)

SetExpiresIn sets ExpiresIn field to given value.

HasExpiresIn

func (o *TokenResult) HasExpiresIn() bool

HasExpiresIn returns a boolean if a field has been set.

GetRefreshToken

func (o *TokenResult) GetRefreshToken() string

GetRefreshToken returns the RefreshToken field if non-nil, zero value otherwise.

GetRefreshTokenOk

func (o *TokenResult) GetRefreshTokenOk() (*string, bool)

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

SetRefreshToken

func (o *TokenResult) SetRefreshToken(v string)

SetRefreshToken sets RefreshToken field to given value.

HasRefreshToken

func (o *TokenResult) HasRefreshToken() bool

HasRefreshToken returns a boolean if a field has been set.

GetTokenType

func (o *TokenResult) GetTokenType() string

GetTokenType returns the TokenType field if non-nil, zero value otherwise.

GetTokenTypeOk

func (o *TokenResult) GetTokenTypeOk() (*string, bool)

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

SetTokenType

func (o *TokenResult) SetTokenType(v string)

SetTokenType sets TokenType field to given value.

HasTokenType

func (o *TokenResult) HasTokenType() bool

HasTokenType returns a boolean if a field has been set.

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