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입니다.
|
메서드 |
|
사용자가 애플리케이션에 대해 발급한 모든 액세스 토큰을 삭제합니다. |
|
사용자가 발급한 액세스 토큰에 관한 정보를 가져옵니다. |
|
지정된 사용자가 서드 파티 애플리케이션에 발급한 토큰 집합을 반환합니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 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. |"]]