Services Plugins FAQs

Google Calendar + Offline Plugin

Hello, I recently subscribed to this plugin, however it does not let me know what permissions I need to enable for the oAuth to work. I was using the basic Calendar From Google plugin and that worked fine.

However when I went to use this one with the same credentials it did not work. Can you help me?

Hello @dylan2 ,
Thank you for contacting us.

I’ve checked how the plugin works on our demo page and didn’t find the problem you mention, everything works fine.
Please make sure that you have built the plugin correctly, as shown in our documentation and also on the demo page of the plugin.

If the problem still persists, please provide me with more information:
-Screenshots/Video of your plugin element’s configuration.
-Workflows associated with the plugin.
-Any additional details you believe are important for us to replicate and understand your use case.

Looking forward to your reply.

Best Regards,
Anton

@AntonZ Thank you for your response. Do you know what scopes you have set up for your Google OAuth. It does not appear to say in the documentation. That is what is causing the issue for me.

At the moment we have these scopes enabled.

Hey @dylan2 ,
Thank you for your quick reply.

We are not using any scopes.
Only the Google Calendar API is enabled.

To ensure the Google Calendar + Offline plugin works correctly, you need to make sure all the necessary permissions (scopes) are enabled for OAuth. Typically, the following standard OAuth scopes are required for interacting with Google Calendar:

  1. https://www.googleapis.com/auth/calendar – Full access to Google Calendar: allows reading, writing, modifying, and deleting events.
  2. https://www.googleapis.com/auth/calendar.events – Access to the calendar events.
  3. https://www.googleapis.com/auth/calendar.readonly – Read-only access to calendar events (use this if you only need to view events without making changes).
  4. https://www.googleapis.com/auth/userinfo.email – Access to the user’s email information.

It looks like you already have the calendar scope enabled (which likely corresponds to https://www.googleapis.com/auth/calendar), but I recommend checking if the other required scopes are added based on your application’s needs.

Best Regards,
Anton

@AntonZ I went through and enabled these 4 scopes as you provided and was able to get it working. However it appears that the user is constantly being logged out of the oAuth. For example they connect their calendar but then a day later have to constantly reconnect their calendar.

Is there a way to make it so they stay logged in? There is no way for this to work if the user has to reconnect their google each time they want to check their calendar or add an event.

Hey @dylan2 ,
Thank you for your reply.

To understand better your use case, would it be convenient to share the following information:

-Screenshots/Video of your plugin element’s configuration.
-Workflows associated with the plugin.
-Any additional details you believe are important for us to replicate and understand your use case.

Looking forward to your reply.

Best Regards,
Anton

Support Team

Browse all Zeroqode Plugins for Bubble

Banner_Last3

Hi Anton,

The main issue is that the user is logged out of the oAuth after 24 hours. Even though the plugin states that the calendars will be refreshed.

Hi @dylan2,

Thank you for providing those additional details! :blush:

I’ll be stepping in to assist you while my colleague Anton is on vacation. From what you’ve shared, it seems the issue might be tied to the access token expiring.

Quick Note: The OAuth Playground automatically revokes refresh tokens after 24 hours. To prevent this, you can set up your own application OAuth credentials in the Configuration panel. This ensures your tokens remain valid beyond the default expiration period.

To help you further, I’ve attached a screenshot outlining the steps you need to follow. For more detailed guidance, I recommend checking out our documentation on setting up OAuth credentials—it covers everything from the basics to more advanced configurations.

If you run into any challenges or have additional questions, don’t hesitate to reach out. I’m here to help! :pray:

Wishing you a wonderful holiday season and a Happy New Year ahead! :tada:

Best regards,
Support Team
Browse all Zeroqode Plugins for Bubble
Banner_Last3

Hi, thank you! Yes, we completed this step and have a working Refresh Token. Do we need to put that in our API Settings instead of another key? Or how exactly do we put it back into our app.

I am able to run the Google Calendar Offline - Refresh Access Token workflow fine. However the user who authenticated is constantly logged out.

Hi @dylan2,

Thank you for the update and apologies for the delayed response over the weekend. :pray:

The issue you’re facing happens because refresh tokens from the OAuth Playground are revoked after 24 hours. To fix this and ensure your users stay logged in, you can set up a workflow to refresh the expired access token automatically.

Steps to Implement Token Refresh

  1. Save the Refresh Token
  • Store the refresh token securely in your database (e.g., Google Calendar Refresh Token field).
  1. Add Your OAuth Credentials to OAuth Playground
  • Go to OAuth Playground: Navigate to OAuth 2.0 Playground.
  • Open the Configuration Panel: Click the gear icon in the top-right corner to open the “Configuration” panel.
  • Specify Your OAuth Credentials: Enter your Client ID and Client Secret from Google Cloud Console.
    • Check the box: Use your own OAuth credentials.
  • Save the Configuration: Click Close to save the changes.
    image

image

  1. Refresh the Access Token
  • Use the Google Calendar Offline - Get Access Token action to get a new access token when the current one expires.
  • Input: The stored refresh token from the user’s record.
  • Output: Save the new access token back to the database or use it directly in API calls.
  1. Use the Refreshed Token
  • Update the plugin or database with the new access token to keep all API calls functional.

Important Notes

Ensure the refresh workflow runs before the token expires to provide a seamless experience for your users. Using the Google Calendar Offline - Get Access Token action is crucial to avoid frequent logouts.

Looking forward to your feedback! :blush:

Happy New Year! :tada:

Best regards,
Support Team
Browse all Zeroqode Plugins for Bubble
Banner_Last3

Hi, thank you for the detailed response. I have followed all these steps and that is what the issue is about.

Once I received my Refresh Token, I have it in the application. However there is no place in any of the calls for the offline plugin to insert an access token.

For example this is the Create Calendar Event Call. There is no place here to enter the access code.

Same goes with the actual oAuth request that is needed to make the plugin work.

Is there some place I am supposed to store these values that can be referenced by the plugin?

It appears that I need to use all the (Access Token) requests once I want to utilize this feature and they are a separate action. I will go and set these up and see if that fixes the issue.

It appears this version with the access code only allows you to add one Attendee and not multiple attendees like the other version. That is the main reason we are using this plugin compared to the other versions. Is there any way to get this to work?

Hi Dylan,

Thank you for your detailed feedback! :pray:

Let’s go through the key points to ensure everything is set up correctly:

1. Using the Plugin for Token Management

  • Refresh Token:
    • Store the refresh token securely in your database under the authenticated user’s record. This is used to generate new access tokens when the current one expires.
  • Access Token:
    • The plugin fetches and manages the access token internally through the “Google Calendar Offline - Refresh Access Token” workflow. You don’t need to manually pass it in API calls.

2. Setting Up Plugin Workflows

  • Authenticate the User:
    Use the Google Calendar Offline - Authenticate action to get the initial refresh token and store it securely.
  • Create Calendar Events:
    Use the Google Calendar Offline - Create Event action. If the tokens are set up correctly, the plugin will handle API calls seamlessly.

3. Managing Multiple Attendees

For multiple attendees:

For further guidance on setting up multiple attendees, please refer to our documentation: Google Calendar Offline Plugin Docs.

If the Issue Persists

If you’re still facing issues, we’d greatly appreciate it if you could record a short Loom video showing the steps and the issue in action. This will help us better understand and identify the problem you’re experiencing.

To Summarize

  • Token Management: Store the refresh token securely and let the plugin handle the access token automatically.
  • Workflow Usage: Use the plugin’s prebuilt actions (Authenticate, Refresh, Create Event) for streamlined integration.
  • Documentation: Refer to the Docs for detailed examples.

If you need further assistance or clarification, feel free to reach out. We’re happy to help! :blush:

Wishing you a fantastic New Year ahead! :tada:

Best regards,
Support Team
Browse all Zeroqode Plugins for Bubble
Banner_Last3

Hi Mina, all of the plugin actions that do not say (access code) do not work with the access code. I have been trying. Happy to create a loom and send it over. Do you have a secure place I can do that?

Hope you have a great new year as well!

Hi @dylan2 ,

Thank you for your message and for the offer to share a Loom video—it would be very helpful!

You can securely send the video to our support email at support@zeroqode.com

We’d be happy to take a closer look and assist you further. :blush:

Best regards,
Support Team
Browse all Zeroqode Plugins for Bubble
Banner_Last3

Hi @dylan2

I wanted to follow up and see if you’ve had a chance to go over the message we shared earlier. If the issue persists or if there’s anything else you’d like help with, please don’t hesitate to let us know.

We’re always here to assist and would be happy to help address any challenges you might be facing.

Looking forward to your reply! :pray:

Best regards,
Support Team
Browse all Zeroqode Plugins for Bubble
Banner_Last3