Upon plugin installation, open its settings screen, and specify values for “Client ID” and “Client secret” fields. Doing so will require setting up an application in Google Developer Console as described below:
- From plugin settings screen, follow the link to the Developer Console.
- In “Library” section, select “Storage → Google Drive API”.
- If requested to create a project, click on “Create project” to continue.
- Enable Google Drive API.
- Click “Go to Credentials”.
- On 1st step, select the following values:
- Where will you be calling the API from: Web server (e.g., node.js, Tomcat)
- What data will you be accessing: User data
- On 2nd step you may keep the Name field value unchanged. To complete field “Authorized redirect URIs”, copy&paste the value of the corresponding field in “Google Drive” plugin settings in Files app backend.
- On 3rd step, enter the Google app name as it will be displayed to users.
- Finally, you will be suggested to download generated credentials. Select “I'll do this later”.
- In the list of available credentials, click on the name of the newly generated ones.
- Copy the displayed values “Client ID” and “Client secret”, and paste them in the appropriate fields in “Google Drive” plugin settings.
- Save plugin settings.
- Click “Connect” to continue.
- When requested to grant permissions for Google app to access your Google Drive account data, allow access.
- Select where you want the connected Google Drive folder to be available in your Files app.
Done! You can now start working with Google Drive files within Webasyst Files app. Any changes that you will make in Files, will be automatically synchronized with Google Drive.