All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.directory.Directory.Tokens.html Maven / Gradle / Ivy

There is a newer version: directory_v1-rev20240709-2.0.0
Show newest version






Directory.Tokens (Admin SDK API directory_v1-rev20220125-1.32.1)












com.google.api.services.directory

Class Directory.Tokens

  • Enclosing class:
    Directory


    public class Directory.Tokens
    extends Object
    The "tokens" collection of methods.
    • Constructor Detail

      • Tokens

        public Tokens()
    • Method Detail

      • delete

        public Directory.Tokens.Delete delete(String userKey,
                                              String clientId)
                                       throws IOException
        Deletes all access tokens issued by a user for an application. Create a request for the method "tokens.delete". This request holds the parameters needed by the admin server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        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.
        clientId - The Client ID of the application the token is issued to.
        Returns:
        the request
        Throws:
        IOException
      • get

        public Directory.Tokens.Get get(String userKey,
                                        String clientId)
                                 throws IOException
        Gets information about an access token issued by a user. Create a request for the method "tokens.get". This request holds the parameters needed by the admin server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        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.
        clientId - The Client ID of the application the token is issued to.
        Returns:
        the request
        Throws:
        IOException
      • list

        public Directory.Tokens.List list(String userKey)
                                   throws IOException
        Returns the set of tokens specified user has issued to 3rd party applications. Create a request for the method "tokens.list". This request holds the parameters needed by the admin server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        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:
        the request
        Throws:
        IOException

Copyright © 2011–2022 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy