REST Resource: tokens
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Ressource: Token
JSON-Vorlage für Tokenressource in der Directory API.
JSON-Darstellung |
{
"clientId": string,
"scopes": [
string
],
"userKey": string,
"anonymous": boolean,
"displayText": string,
"nativeApp": boolean,
"kind": string,
"etag": string
} |
Felder |
clientId |
string
Die Client-ID der Anwendung, für die das Token ausgestellt wird.
|
scopes[] |
string
Eine Liste der Autorisierungsbereiche, die der Anwendung gewährt werden.
|
userKey |
string
Die eindeutige ID des Nutzers, der das Token ausgestellt hat.
|
anonymous |
boolean
Gibt an, ob die Anwendung bei Google registriert ist. Der Wert ist true , wenn die Anwendung eine anonyme Client-ID hat.
|
displayText |
string
Der sichtbare Name der Anwendung, für die das Token ausgestellt wird.
|
nativeApp |
boolean
Gibt an, ob das Token für eine installierte Anwendung ausgestellt wird. Der Wert ist true , wenn die Anwendung auf einem Computer oder Mobilgerät installiert ist.
|
kind |
string
Der Typ der API-Ressource. Dies ist immer admin#directory#token .
|
etag |
string
ETag der Ressource.
|
Methoden |
|
Alle Zugriffstokens werden gelöscht, die von einem Nutzer für eine Anwendung ausgestellt wurden. |
|
Ruft Informationen zu einem von einem Nutzer ausgestellten Zugriffstoken ab. |
|
Gibt die Tokens zurück, die der angegebene Nutzer für Drittanbieteranwendungen ausgestellt hat. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-25 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-07-25 (UTC)."],[],[],null,["# REST Resource: tokens\n\nResource: Token\n---------------\n\nJSON template for token resource in Directory API.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"clientId\": string, \"scopes\": [ string ], \"userKey\": string, \"anonymous\": boolean, \"displayText\": string, \"nativeApp\": boolean, \"kind\": string, \"etag\": string } ``` |\n\n| Fields ||\n|---------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `clientId` | `string` The Client ID of the application the token is issued to. |\n| `scopes[]` | `string` A list of authorization scopes the application is granted. |\n| `userKey` | `string` The unique ID of the user that issued the token. |\n| `anonymous` | `boolean` Whether the application is registered with Google. The value is `true` if the application has an anonymous Client ID. |\n| `displayText` | `string` The displayable name of the application the token is issued to. |\n| `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. |\n| `kind` | `string` The type of the API resource. This is always `admin#directory#token`. |\n| `etag` | `string` ETag of the resource. |\n\n| Methods ------- ||\n|--------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| ### [delete](/workspace/admin/directory/reference/rest/v1/tokens/delete) | Deletes all access tokens issued by a user for an application. |\n| ### [get](/workspace/admin/directory/reference/rest/v1/tokens/get) | Gets information about an access token issued by a user. |\n| ### [list](/workspace/admin/directory/reference/rest/v1/tokens/list) | Returns the set of tokens specified user has issued to 3rd party applications. |"]]