How to enable Google Drive API and get client ID and secret

Some modern application that uses Google Drive storage often ask for Google Drive client ID and Secret. In order to do this, we have to enable Google Drive API first. After that, we can get the client ID and secret and copy back to the application. If you are willing to enable Google Drive API, please follow these tutorial below.

What is Google Drive API ?

The Google Drive platform gives you many APIs along with client libraries, language-specific examples, and documentation to help you develop apps that integrate with the Google Drive. The core functionality of Drive apps is to download and upload files in Google Drive. But, the Drive platform provides a lot more features than just an ordinary storage.

Other than just a storage, Drive APIs let us to:

  • Search for files
  • Distribute and market through Google Drive
  • Share and Collaborate
  • Export and conver Google Docs.
  • Many more

Steps to enable Google Drive API

Step 1. Login to the developer console

Click this url: https://console.developers.google.com/apis/library and log in using your Google account. Type “drive” without quotes on the search box. You should see Google Drive API listed there.

Click on Google Drive API and then click Enable button to enable it.

enable google drive api

Now, we need to create new project.

 

Give the new project a distinct name and then click Create button.

Next we need to create a new credential. Please follow these steps below to create OAuth client ID.

Click Create Consent Screen

Now enter the details in OAuth Consent Screen

Click Save. On the next screen, we need to create a new client ID.

Then, your new client ID and secret is ready.

You can use this client ID and secret to authenticate Google Drive to your applications. Thanks for reading this how to enable Google Drive API tutorial.

Admin

Leave a Reply

Your email address will not be published. Required fields are marked *