REST Resource: tokens
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ทรัพยากร: โทเค็น
เทมเพลต JSON สําหรับทรัพยากรโทเค็นใน Directory API
การแสดง JSON |
{
"clientId": string,
"scopes": [
string
],
"userKey": string,
"anonymous": boolean,
"displayText": string,
"nativeApp": boolean,
"kind": string,
"etag": string
} |
ช่อง |
clientId |
string
รหัสไคลเอ็นต์ของแอปพลิเคชันที่ออกโทเค็นให้
|
scopes[] |
string
รายการขอบเขตการให้สิทธิ์ที่แอปพลิเคชันได้รับ
|
userKey |
string
รหัสที่ไม่ซ้ำกันของผู้ใช้ที่ออกโทเค็น
|
anonymous |
boolean
แอปพลิเคชันลงทะเบียนกับ Google หรือไม่ ค่าจะเป็น true หากแอปพลิเคชันมีรหัสไคลเอ็นต์ที่ไม่ระบุชื่อ
|
displayText |
string
ชื่อที่แสดงได้ของแอปพลิเคชันที่ออกโทเค็นให้
|
nativeApp |
boolean
โทเค็นออกให้กับแอปพลิเคชันที่ติดตั้งหรือไม่ ค่าจะเป็น true หากติดตั้งแอปพลิเคชันลงในเดสก์ท็อปหรืออุปกรณ์เคลื่อนที่
|
kind |
string
ประเภทของทรัพยากร API ค่านี้จะมีค่าเป็น admin#directory#token เสมอ
|
etag |
string
ETag ของทรัพยากร
|
เมธอด |
|
ลบโทเค็นการเข้าถึงทั้งหมดที่ผู้ใช้ออกให้แอปพลิเคชัน |
|
รับข้อมูลเกี่ยวกับโทเค็นการเข้าถึงที่ผู้ใช้ออกให้ |
|
แสดงชุดโทเค็นที่ผู้ใช้ที่ระบุออกให้กับแอปพลิเคชันของบุคคลที่สาม |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 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. |"]]