users_access_token
Creates, updates, deletes, gets or lists a users_access_token resource.
Overview
| Name | users_access_token |
| Type | Resource |
| Id | google.developerconnect.users_access_token |
Fields
The following fields are returned by SELECT queries:
- fetch_access_token
| Name | Datatype | Description |
|---|---|---|
exchangeError | object | The error resulted from exchanging OAuth tokens from the service provider. (id: ExchangeError) |
expirationTime | string (google-datetime) | Expiration timestamp. Can be empty if unknown or non-expiring. |
scopes | array | The scopes of the access token. |
token | string | The token content. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
fetch_access_token | select | projectsId, locationsId, accountConnectorsId | Fetches OAuth access token based on end user credentials. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
accountConnectorsId | string | |
locationsId | string | |
projectsId | string |
SELECT examples
- fetch_access_token
Fetches OAuth access token based on end user credentials.
SELECT
exchangeError,
expirationTime,
scopes,
token
FROM google.developerconnect.users_access_token
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND accountConnectorsId = '{{ accountConnectorsId }}' -- required
;