Setup - gherynos/drivecopy GitHub Wiki

In order to work Drive Copy needs three information:

  • Client ID
  • Client Secret
  • Authorization code.

The application will ask to insert them via console the first time it tries to reach Google Drive. The required information, after inserted and processed, will be stored in a configuration file called drivecopy.properties.

Steps to obtain Client ID and Client Secret

  • Open the Google API Console Credentials page.
  • From the project drop-down, choose Create a new project, enter a name for the project, and optionally, edit the provided project ID. Click Create.
  • Select the Library page in your API project, and enable the Drive API.
  • On the Credentials page, select Create credentials, then select OAuth client ID.
  • You may be prompted to set a product name on the Consent screen; if so, click Configure consent screen, supply the requested information, and click Save to return to the Credentials screen.
  • Select Other for the Application type, and enter any additional information required.
  • Click Create.
  • On the page that appears, copy the client ID and client secret to your clipboard, as you will need them when you configure your application.

(steps taken from Google AdWords API authentication guide)

Steps to obtain Authorization code

  • After Client ID and Client Secret has been inserted, the application will show an URL.
  • Enter the URL in a browser and, if not already, login to Google.
  • Authorize the application.
  • Copy the response code from the webpage and paste it in the console.