REST Resource: tokens

リソース: Token

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。

Methods

delete

ユーザーがアプリケーションに対して発行したアクセス トークンをすべて削除します。

get

ユーザーが発行したアクセス トークンに関する情報を取得します。

list

ユーザーがサードパーティ アプリケーションに発行したトークンのセットを返します。