Skip to main content

Google Drive

Overview

Google Drive is a secure, cloud-based file storage and synchronization service from Google that allows users to store, access, share, and edit files from any device.

Bottle Rocket can integrate with Google Drive to upload files to a destination account that you have configured.

Prerequisites

Create the project in Google Cloud

tip

If you have already created a GCP project as part of a Google Cloud Vision workflow, you can use this project instead of creating a new one.

  • In the Google Cloud console, select Create or select a project.
  • Enter a Project name, select a Location, and click Create.

Create project

  • In the main project dashboard, open the sidebar menu and navigate to APIs & services > Library.
  • Search for Drive and you should see the Google Drive API listed; select it.

Google Drive API entry

  • Click Enable to enable the API.

  • In the API / Service details screen, click Create credentials.

  • For the credentials type, select OAuth client ID.

  • For the Application type, select Desktop App.

Desktop OAuth app type

  • Select Create. You should receive a popup with the OAuth client details.

Desktop OAuth app type

  • Select Download JSON to download the credentials file. You will supply this file to Bottle Rocket.
danger

Treat this credentials file like a password - keep it secure, private, and do not share it with anyone.

Upload the private key file to the Google Bottle Rocket Connector

  • Login to your Bottle Rocket server.
  • On the left-hand sidebar, under My connectors, select Add connector.

Add connector menu item

  • Select the Google Connector from the list of connectors, and click the Add connector button.

Add connector

  • Click on the paperclip / attachment button, and upload the private key file you downloaded from Google Cloud.
  • The Authorize in Google button should now be enabled; click it to open a new browser tab.
  • The new browser tab should prompt you to select a Google account to login to; select the account you wish to use with Bottle Rocket, and login.

App wants access

  • Click Continue to proceed.

App wants access

  • Copy the Authorisation Code value and paste it into the Access Code field in Step 5 of the Google Connector configuration screen.

Step 5

  • Click Submit to complete the configuration.
  • If everything was successful, the Google Connector should now be listed under My connectors with a green indicator.

Green connector