Show / Hide Table of Contents

Class TokensResource

The "tokens" collection of methods.

Inheritance
object
TokensResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Admin.Directory.directory_v1
Assembly: Google.Apis.Admin.Directory.directory_v1.dll
Syntax
public class TokensResource

Constructors

TokensResource(IClientService)

Constructs a new resource.

Declaration
public TokensResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Delete(string, string)

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

Declaration
public virtual TokensResource.DeleteRequest Delete(string userKey, string clientId)
Parameters
Type Name Description
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.

Returns
Type Description
TokensResource.DeleteRequest

Get(string, string)

Gets information about an access token issued by a user.

Declaration
public virtual TokensResource.GetRequest Get(string userKey, string clientId)
Parameters
Type Name Description
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.

Returns
Type Description
TokensResource.GetRequest

List(string)

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

Declaration
public virtual TokensResource.ListRequest List(string userKey)
Parameters
Type Name Description
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.

Returns
Type Description
TokensResource.ListRequest
In this article
Back to top Generated by DocFX