class Tokens extends Resource (View source)

The "tokens" collection of methods.

Typical usage is:

 $adminService = new Google\Service\Directory(...);
 $tokens = $adminService->tokens;

Methods

delete(string $userKey, string $clientId, array $optParams = [])

Deletes all access tokens issued by a user for an application.

get(string $userKey, string $clientId, array $optParams = [])

Gets information about an access token issued by a user. (tokens.get)

listTokens(string $userKey, array $optParams = [])

Returns the set of tokens specified user has issued to 3rd party applications. (tokens.listTokens)

Details

delete(string $userKey, string $clientId, array $optParams = [])

Deletes all access tokens issued by a user for an application.

(tokens.delete)

Parameters

string $userKey

Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID.

string $clientId

The Client ID of the application the token is issued to.

array $optParams

Optional parameters.

Exceptions

Exception

Token get(string $userKey, string $clientId, array $optParams = [])

Gets information about an access token issued by a user. (tokens.get)

Parameters

string $userKey

Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID.

string $clientId

The Client ID of the application the token is issued to.

array $optParams

Optional parameters.

Return Value

Token

Exceptions

Exception

Tokens listTokens(string $userKey, array $optParams = [])

Returns the set of tokens specified user has issued to 3rd party applications. (tokens.listTokens)

Parameters

string $userKey

Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID.

array $optParams

Optional parameters.

Return Value

Tokens

Exceptions

Exception