Google Drive Service Acc

Demo to preview the plugin:

Introduction

Need to transfer files from your Bubble app to Google Drive? Our no-code plugin effortlessly pushes files (in Base64 format) from your Bubble app to Google Drive using a Service Account.
Icon
NOTE: To use this plugin, you’ll need to obtain API credentials with a Private Key for Google.
All transferred files are stored within the Google Service account and can only be accessed via the API (e.g., Get Files). The files are not directly stored in Google Drive itself.
Image without caption

How to setup

  1. Enable the Google Drive API
      • In the dashboard, enable the Google Drive API for the project you want to use.
    1. Create a Service Account
        • In the Google Cloud Console, navigate to the Credentials section.
        • Click on Create Credentials > Service Account.
          • Fill in the required details and follow the setup steps.
          • Once created, go to the Keys tab and generate a new JSON key file.
          • Download and store this JSON file securely, as it contains the credentials needed to authenticate requests.
      1. Share Access with the Service Account
          • In Google Drive, locate the files or folders you want to integrate with the plugin.
          • Share access with the service account email (found in the JSON file). Make sure to grant the necessary permissions (read, write, etc.).
      1. Extract the Required Credentials from the JSON File
          • The downloaded JSON file contains essential credentials for authentication.
          • You will need the private_key and client_email from the file.
          • Here’s an example JSON structure:
            • json
              { ... "private_key": "-----BEGIN PRIVATE KEY-----\nYOUR_PRIVATE_KEY\n-----END PRIVATE KEY-----\n", "client_email": "your-service-account@your-project-id.iam.gserviceaccount.com", ... }
      1. Add the JSON Credentials to Your Bubble Application
          • In your Bubble editor, install the Google Drive Service Account plugin.
          • Locate the Plugin Settings in Bubble.
          • Enter the Service Account Email (client_email from JSON).
          • Copy and paste the Private Key (private_key from JSON), ensuring you include everything between:
            • vb.net
              -----BEGIN PRIVATE KEY----- (your key content) -----END PRIVATE KEY-----
          • The setup in Bubble should look similar to the following:

        Plugin Data Calls

        Search/Get Files

        Get Files API V2

        Get File Info

        Get Image from Drive

        Download File

        Get Files (API V3) Extended

        Gets A Permission By ID

        Get Permissions

        Plugin Action Calls

        Upload a File (base64)

        Create A File

        Give Everyone Permission (Write)

        Give Everyone Permission (Read)

        Remove Everyone With Link Permission (Read)

        Remove Everyone With Link Permission (Write)

        Remove Permission Using ID

        Give a User Permission (Write)

        Give a User Permission (Read)

        Update a User’s Permission (Write)

        Update a User’s Permission (Read)

        Delete File

        Add File to Folder

        Remove File From Folder

        Rename file

        Export File

        Generate Sort Query V2

        Generate Sort Query V3

        Changelogs