![]() * Global instance of the scopes required by this quickstart. Private static final String TOKENS_DIRECTORY_PATH = "tokens" ** Directory to store authorization tokens for this application. ![]() Private static final JsonFactory JSON_FACTORY = GsonFactory.getDefaultInstance() Private static final String APPLICATION_NAME = "Google Drive API Java Quickstart" * class to demonstarte use of Drive files list API */ Open the default adle file and replace its contents with the Prerequisite into the newly-created src/main/resources/ Mkdir -p src/main/java src/main/resourcesĬopy the credentials.json file you downloaded as a Project structure: gradle init -type basic In your working directory, run the following commands to create a new A Google account with Google Drive enabled.To learn how toĬreate credentials for a desktop application, refer to Authorization credentials for a desktop application.Note: For this quickstart, you are enabling the "Drive API". A Google Cloud project with the API enabled.To run this quickstart, you need the following prerequisites: Complete the steps described in the rest of this page to create a simple JavaĬommand-line application that makes requests to the Drive API.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |