This extension lets you use the files hosted on your Google Drive as Download Monitor files. If you want to take advantage of the Google Drive Extension, you’ll need first to establish a few things.
- Unzip and upload the plugin’s folder to your /wp-content/plugins/ directory
- Activate the extension through the ‘Plugins’ menu in WordPress
For more information on installing and activating Download Monitor see here.
Step 1: Go to https://console.developers.google.com/ and sign in with your Google account.
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: Go to Credentials.
Step 8: Click on Configure Consent Screen.
Step 9: Choose the user type. In this case, you’ll have to tick the External box and click on Create.
Step 10: Add an App Name, User support email, and Developer contact information. Then, click Save & Continue.
Step 11: Click Save&Continue.
Step 12: Click Save&Continue. You’ll be redirected to your Dashboard.
Step 13: After enabling the Google Drive API, click on Credentials > Create Credentials > OAuth client ID.
Step 14: In this step, you need to add more information:
- Choose Application Type: Web Application
- 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 15: 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 16: Copy the keys created earlier and paste them into these fields.
Step 17: 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.
To add files from Google Drive to your website with Download Monitor, go to your WordPress Dashboard > Downloads > Add New > Add File and click on Browse Google Drive.
Then, you can start looking through the files and adding them to the Download Monitor.