1. Home
  2. Knowledge Base
  3. Extensions
  4. How to set up Google Drive Extension

How to set up Google Drive Extension

If you want to set up the Google Drive Extension and use the files on your website, you’ll need first to establish a few things.

Step 1: Go to https://console.developers.google.com/ and sign in with your Google account to get access to the files you want to display on your website. 

Step 2: In the top bar, click Select a project > New Project.

Step 3: You’ll be redirected to a New Project page. Name your project and then click Create.

Step 4: Make sure you have selected your project in the top bar.

Step 5: Type Google Drive API in the search bar. When you find the API, click on it.

Step 6: Enable the Google Drive API to be able to connect Google Drive to your website.

Step 7: After enabling the Google Drive API, click on Credentials > Create Credentials > OAuth client ID.

Step 8: In this step, you need to add more information:

  • Choose Application Type: Web Application
  • Name
  • Authorized JavaScript origins: https://yourdomain.com
  • Authorized redirect URIs: https://yourdomain.com/wp-admin/edit.php?post_type=dlm_download&page=download-monitor-settings&tab=external_hosting&action=oauth_redirect

A window with Your Client ID and Your Client Secret will appear, so let’s see where to add these keys.

Step 9: Go to your WordPress Dashboard > Downloads > Settings > External Hosting.

Here you’ll see two fields that ask you to add the client ID and client secret key.

Step 10: Copy the keys created earlier and paste them into these fields.

Step 11: Click Save Changes and then Grant Access. You’ll be redirected to sign in to your Google account and grant the required permissions.

You can now start using your Google Drive files on your website.

Was this article helpful?

Related Articles