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 של המשאב.
|
Methods |
|
מחיקה של כל אסימוני הגישה שהונפקו על ידי משתמש לאפליקציה. |
|
אחזור מידע על אסימון גישה שהונפק על ידי משתמש. |
|
הפונקציה מחזירה את קבוצת האסימונים שהמשתמש שצוין הנפיק לאפליקציות של צד שלישי. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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. |"]]