REST Resource: tokens
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zasób: Token
Szablon JSON zasobu tokenu w interfejsie Directory API.
Zapis JSON |
{
"clientId": string,
"scopes": [
string
],
"userKey": string,
"anonymous": boolean,
"displayText": string,
"nativeApp": boolean,
"kind": string,
"etag": string
} |
Pola |
clientId |
string
Identyfikator klienta aplikacji, dla której wydawany jest token.
|
scopes[] |
string
Lista zakresów autoryzacji przyznanych aplikacji.
|
userKey |
string
Unikalny identyfikator użytkownika, który wydał token.
|
anonymous |
boolean
czy aplikacja jest zarejestrowana w Google. Jeśli aplikacja ma anonimowy identyfikator klienta, jego wartość to true .
|
displayText |
string
Wyświetlana nazwa aplikacji, dla której wystawiono token.
|
nativeApp |
boolean
Określa, czy token jest wydawany do zainstalowanej aplikacji. Jeśli aplikacja jest zainstalowana na komputerze lub urządzeniu mobilnym, wartość to true .
|
kind |
string
Typ zasobu interfejsu API. Jest ona zawsze admin#directory#token .
|
etag |
string
ETag zasobu.
|
Metody |
|
Usuwa wszystkie tokeny dostępu wystawione przez użytkownika dla aplikacji. |
|
Pobiera informacje o tokenie dostępu wydanym przez użytkownika. |
|
Zwraca zestaw tokenów wystawionych przez określonego użytkownika dla aplikacji innych firm. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 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. |"]]