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
نوع مورد واجهة برمجة التطبيقات يكون هذا الخيار دائمًا admin#directory#token .
|
etag |
string
علامة ETag للمورد
|
الطُرق |
|
لحذف جميع رموز الوصول التي أصدرها مستخدم لتطبيق معيّن. |
|
الحصول على معلومات عن رمز مرور صادر عن مستخدم |
|
عرض مجموعة الرموز المميزة التي أصدرها المستخدم المحدّد للتطبيقات التابعة لجهات خارجية |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],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. |"]]