Reference documentation and code samples for the Google Cloud Developer Connect V1 Client class FetchAccessTokenResponse.
Message for responding to getting an OAuth access token.
Generated from protobuf message google.cloud.developerconnect.v1.FetchAccessTokenResponse
Namespace
Google \ Cloud \ DeveloperConnect \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ token |
string
The token content. |
↳ expiration_time |
Google\Protobuf\Timestamp
Expiration timestamp. Can be empty if unknown or non-expiring. |
↳ scopes |
array
The scopes of the access token. |
↳ exchange_error |
ExchangeError
The error resulted from exchanging OAuth tokens from the service provider. |
getToken
The token content.
Returns | |
---|---|
Type | Description |
string |
setToken
The token content.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getExpirationTime
Expiration timestamp. Can be empty if unknown or non-expiring.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasExpirationTime
clearExpirationTime
setExpirationTime
Expiration timestamp. Can be empty if unknown or non-expiring.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |
getScopes
The scopes of the access token.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setScopes
The scopes of the access token.
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |
getExchangeError
The error resulted from exchanging OAuth tokens from the service provider.
Returns | |
---|---|
Type | Description |
ExchangeError|null |
hasExchangeError
clearExchangeError
setExchangeError
The error resulted from exchanging OAuth tokens from the service provider.
Parameter | |
---|---|
Name | Description |
var |
ExchangeError
|
Returns | |
---|---|
Type | Description |
$this |