REST Resource: tokens
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Kaynak: Jeton
Directory API'deki jeton kaynağı için JSON şablonu.
JSON gösterimi |
{
"clientId": string,
"scopes": [
string
],
"userKey": string,
"anonymous": boolean,
"displayText": string,
"nativeApp": boolean,
"kind": string,
"etag": string
} |
Alanlar |
clientId |
string
Jetonun verildiği uygulamanın istemci kimliği.
|
scopes[] |
string
Uygulamaya verilen yetkilendirme kapsamlarının listesi.
|
userKey |
string
Jetonu veren kullanıcının benzersiz kimliği.
|
anonymous |
boolean
Uygulamanın Google'a kayıtlı olup olmadığı. Uygulamanın anonim bir istemci kimliği varsa değer true olur.
|
displayText |
string
Jetonun verildiği uygulamanın görüntülenebilir adı.
|
nativeApp |
boolean
Jetonun yüklü bir uygulamaya verilip verilmediği. Uygulama bir masaüstüne veya mobil cihaza yüklüyse değer true olur.
|
kind |
string
API kaynağının türü. Bu değer her zaman admin#directory#token olur.
|
etag |
string
Kaynağın ETag'i.
|
Yöntemler |
|
Bir kullanıcı tarafından bir uygulama için verilen tüm erişim jetonlarını siler. |
|
Kullanıcı tarafından verilen bir erişim jetonu hakkında bilgi alır. |
|
Belirtilen kullanıcının üçüncü taraf uygulamalarına verdiği jeton grubunu döndürür. |
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-25 UTC.
[null,null,["Son güncelleme tarihi: 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. |"]]