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
トークンが発行されるアプリケーションのクライアント ID。
|
scopes[] |
string
アプリに付与されている承認スコープのリスト。
|
userKey |
string
トークンを発行したユーザーの一意の ID。
|
anonymous |
boolean
アプリが Google に登録されているかどうか。アプリに匿名クライアント ID がある場合、値は 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. |"]]