[NEW PLUGIN] Gooogle Drive

Hello everyone!
A brand-new Google Drive plugin has just been released!!
This is a complete Google Drive API integration. Here are some of the features:

  • Get Access Token
  • Refresh Access Token
  • Create a File
  • List Files
  • List Files from specific folder
  • Download Drive File
  • Get Single File
  • Copy File
  • Change File Name
  • Delete File
  • Create Folder
  • Move File to Folder
  • Export Google Document
  • Create File Permissions
  • Get User’s Drive Information

This plugin works with a Google Drive element to handle login and to catch google token, so you don’t have to do anything! Google Drive element returns all data needed to create a user: name, picture, email, token and refresh token!

Demo: link
Docs: link

4 Likes

This are the workflow steps to set up the refresh token process correctly:

Step 1. Add the Google Drive element into your Editor. Set any element to be your ‘click to login’ and set the action ‘Oauth Login’ from Google Drive element
Screen Shot 2021-10-08 at 9.49.23 AM

Step 2. Add the Event called ‘Google Drive has valid response’.

  • Create an account for someone else (check the return user if exists box)
  • Set the User’s data with the returned values from the Google Drive Element (image 2)
  • Assing a temp password to user from step 1
  • Log the user in. Email: Result from step 1, password: result from step 3

Step 3. Now everytime you’re running an action that requires verification you should do this two things.

All calls contain ‘access_token’ so you should place the current user’s access_token
Screen Shot 2021-10-08 at 9.57.04 AM

Always run a verification for expired tokens when your user is logged in. If token is expired, refresh token and change Current User’s access_token
Screen Shot 2021-10-08 at 9.59.26 AM

That’s it! If you have any more questions, please reach out to me!

Hi there

I purhased your plugin, but for the life of me can not get it working. I copied all the steps in the instructions several times but the plugin will not return a valid state and set user tokens. I get the google prompt OK and allow the application, it then redirects back and then nothing. Checking the user database, no changes have been made.

Any tips on how I can resolve this please?

Thanks

Hey @mfisher sorry to hear that, would you mind either:
a. sharing screenshots of workflows + element in place (this will take longer)
b. add agency@datamaticsoftware.com as a collaborator so we can see it directly and take care of it?
Note: You can add an agency in any Bubble plan, even Free

Hi! Thanks for the response. I’ve added you as a collaborator. Please see the test_google-drive page.

Is it also possible to only show shared Google Drive folders between users that login and nothing else?

Thanks

Yes it is possible. I see the app now, I’ll help you set it up.
Have you also correctly setted up the google console credentials??

Hi,

Yes I set up the OAuth2 API as your instructions.

Thanks

thank you @mfisher - please also add the origin of the bubble app and in redirect uri the url without ?debug_mode=true like this:

Ah OK thanks, I’ve added those in. Should that be it?

@mfisher Can you give access to these two emails in your GCP project please:
segongora9@gmail.com
agency@datamaticsoftware.com

Ok added them.

Thanks

Hello,
I am having trouble setting up the export google docs action. It keeps returning a 403 error.
Thanks
Stuart

Hello @stuartbell3011 Would you be able to add us to your app (agency@datamaticsoftware.com) and tell us what page you’re using so we can go and see what’s going on?

This plug in looked really promising. However when I tried setting up the workflow like you show, in step 2 when creating an account I had no access to “this GoogleDrive” instance, and it isn’t even shown in the menu. I did add the element to the page, I even tried copying the element and action from your demo page but I didn’t have an element to interact with in the workflow. Did I forget anything?