REST Resource: tokens
Resource: Token
JSON template for token resource in Directory API.
JSON representation |
{
"clientId": string,
"scopes": [
string
],
"userKey": string,
"anonymous": boolean,
"displayText": string,
"nativeApp": boolean,
"kind": string,
"etag": string
} |
Fields |
clientId |
string
The Client ID of the application the token is issued to.
|
scopes[] |
string
A list of authorization scopes the application is granted.
|
userKey |
string
The unique ID of the user that issued the token.
|
anonymous |
boolean
Whether the application is registered with Google. The value is true if the application has an anonymous Client ID.
|
displayText |
string
The displayable name of the application the token is issued to.
|
nativeApp |
boolean
Whether the token is issued to an installed application. The value is true if the application is installed to a desktop or mobile device.
|
kind |
string
The type of the API resource. This is always admin#directory#token .
|
etag |
string
ETag of the resource.
|
Methods |
|
Deletes all access tokens issued by a user for an application. |
|
Gets information about an access token issued by a user. |
|
Returns the set of tokens specified user has issued to 3rd party applications. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-22 UTC.
[null,null,["Last updated 2024-08-22 UTC."],[[["This resource provides a JSON template for managing access tokens issued by users for applications within the Google Directory API."],["The template includes fields like `clientId`, `scopes`, `userKey`, and others to define token properties and application details."],["You can use methods like `delete`, `get`, and `list` to manage tokens for specific users and applications."],["The `kind` field is always `admin#directory#token`, indicating the resource type within the Directory API."]]],["The JSON template defines a token resource with fields like `clientId`, `scopes`, `userKey`, `anonymous`, `displayText`, `nativeApp`, `kind`, and `etag`. These fields represent the application's ID, authorization scopes, user ID, registration status, display name, installation type, resource type, and resource version, respectively. The API offers methods to `delete` all user-issued tokens for an application, `get` information about a specific token, and `list` all tokens issued by a user to third-party apps.\n"]]