Struct gsuite_api::tokens::Tokens [−][src]
pub struct Tokens { pub client: Client, }
Fields
client: Client
Implementations
This function performs a GET
to the /admin/directory/v1/users/{userKey}/tokens
endpoint.
Returns the set of tokens specified user has issued to 3rd party applications.
Parameters:
user_key: &str
– Identifies the user in the API request. The value can be the user’s primary email address, alias email address, or unique user ID.
This function performs a GET
to the /admin/directory/v1/users/{userKey}/tokens/{clientId}
endpoint.
Gets information about an access token issued by a user.
Parameters:
user_key: &str
– Identifies the user in the API request. The value can be the user’s primary email address, alias email address, or unique user ID.client_id: &str
– The Client ID of the application the token is issued to.
This function performs a DELETE
to the /admin/directory/v1/users/{userKey}/tokens/{clientId}
endpoint.
Deletes all access tokens issued by a user for an application.
Parameters:
user_key: &str
– Identifies the user in the API request. The value can be the user’s primary email address, alias email address, or unique user ID.client_id: &str
– The Client ID of the application the token is issued to.