REST Resource: tokens
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
रिसॉर्स: टोकन
Directory API में टोकन संसाधन के लिए JSON टेंप्लेट.
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 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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. |"]]