Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.88 KB

auth.md

File metadata and controls

44 lines (31 loc) · 1.88 KB

Authentication

Generating Oauth Credentials

  • Follow Enable Drive API section.
  • Open google console.
  • Click on "Credentials".
  • Click "Create credentials" and select oauth client id.
  • Select Application type "Desktop app" or "other".
  • Provide name for the new credentials. ( anything )
  • This would provide a new Client ID and Client Secret.
  • Download your credentials.json by clicking on the download button.

Now, we have obtained our credentials, move to the First run section to use those credentials:

Enable Drive API

  • Log into google developer console at google console.
  • Click select project at the right side of "Google Cloud Platform" of upper left of window.

If you cannot see the project, please try to access to https://console.cloud.google.com/cloud-resource-manager.

You can also create new project at there. When you create a new project there, please click the left of "Google Cloud Platform". You can see it like 3 horizontal lines.

By this, a side bar is opened. At there, select "API & Services" -> "Library". After this, follow the below steps:

  • Click "NEW PROJECT" and input the "Project Name".
  • Click "CREATE" and open the created project.
  • Click "Enable APIs and get credentials like keys".
  • Go to "Library"
  • Input "Drive API" in "Search for APIs & Services".
  • Click "Google Drive API" and click "ENABLE".

Go back to oauth credentials setup

Retrieve API key

In order to use a custom api key, follow the below steps:

  • Follow Enable Drive API section.
  • Open google console.
  • Click on "Credentials".
  • Click "Create credentials" and select API key.
  • Copy the API key. You can use this API key.