WP File Download Addon: Google Team Drive Integration
1. Login to Google Team Drive in WP File Download
Automatic mode
From now, you can save a lot of time while connecting to the Google server. First, to use this feature, you have to link your JoomUnited account at Menu Settings > General, please click on the WordPress settings link if you have not connected.
Then go back to the settings and just click on Connect Google Team Drive button on the right corner.
Then follow the next steps to finish the connection.
Manual mode
With the credentials in the previous step, please go to WordPress admin and click on the menu WP File Download > Configuration > Cloud Connection tab > Google Team Drive section. Paste your
- App key
- App secret
Then save the configuration and click on the Google Team Drive connection button.
Then follow the next steps to finish. If you haven’t made any mistake you should validate the authorization in a new window like below.
The connection should be a success, select the root drive and then you can create Google Drive folders and upload files in it!!
2. How does it work? What can I do with Google Team Drive?
How does it work?
WP File download will sync files to the selected root folder on your Google Team Drive in the previous step.
All the folders and sub-folders added in WP File Download will be synchronized under the selected root folder. And vice versa, all your files and categories from that root folder on Google Team Drive will be synchronized to your WP File Download dashboard on Wordpress.
What are the sync directions?
It works in both directions! You can add a file from Google Team Drive and see it in WP File Download or add a file in WP File Download and see it in Google Team Drive. It also means you can manage WP File Download files from your desktop using Google Team Drive sync software. That’s crazy! Yes we know ☺
3. Create a Google Team Drive App
The Google Team Drive integration is distributed as a separate Add-on. You need to install this add-on (plugin) additionally to WP File Download. The addon includes integration for Dropbox, OneDrive and Amazon S3 too.
First, you need a Google Team Drive App to connect your website to a Google Team Drive account. Go to https://console.cloud.google.com/ and navigate to the top-left, click Menu menu > IAM & Admin > Create a Project.
Then set up a project name (no accent).
Then wait a few seconds for the project creation…
If it's the first time you're using the Google Drive API, you should go to Navigation menu > APIs and Services > Library to activate it.
From the left menu, click on “Navigation menu > APIs & Services”
Then on the left menu “Credentials”, on the main panel click “ + New Credentials” >> OAuth client ID (if asked, add a name to your OAuth consent screen).
Now, the most important step.
- Select “Web application” and add a name of your choice.
- Authorized JavaScript origin: https://your-domain.com (replace by your domain name, no slash, no www.)
- Authorized redirect URIs: https://joomunited.com/wp-admin/admin.php?page=wpfdAddon-cloud&task=googleteamdrive.authenticate (replace by your domain name)
Then you need to select User Type, Internal is often for accounts in an organization or team and External is for personal accounts.
- Internal: your app is limited to Google Workspace (known as G Suite) users within your organization. You will not need to submit your app for verification.
- External: your app will available to any user with a Google account but your app should be public and verified.
Then, fill in your authorized domains and continue with the following steps to finish the app registration. Now you can back to the previous step Select “Web application” to create the credentials.
And the publishing status should be Production, if it's currently Testing, you should click on Publish app button to change the status.
Then… voilà! You have your ID and Secret to add to the WP File Download configuration.