API connector to Gmail


image
image
Appreciate any help or suggestions!

1 Like

https://accounts.google.com/o/oauth2/v2/auth
Is the url for auth.

Token endpoint: https://oauth2.googleapis.com/token

There’s already a lot of topic about how to set Google oAuth2. Take time to search before posting. You should fine what you need.

2 Likes

I did research before posting. Thank you for the help, I made corrections and run it again, here is the new Error 400: invalid_scope.



please advise…

1 Like

Scopes for profile are
https://www.googleapis.com/auth/userinfo.email
https://www.googleapis.com/auth/userinfo.profile
OpenID

You need to activate them and request them because Bubble need to get access to ID and email of the profile to complete the authentication

added 3 non-sensitive scopes
image


still same error : Error 400: invalid_scope I added scope “https://mail.google.com/” and I need to make a demo Youtube video link to Google for Verification?

You should be able to test without filling all info. But maybe Google change that?

In Bubble, which scope did you set in scopes field?

“In Bubble, which scope did you set in scopes field?” sorry, I don’t understand where can I set scopes in Bubble.

any good tutorial about using Bubble’s API connector to setup Gmail? below is the closest one I can find on Youtube https://www.youtube.com/watch?v=20Gu_7poxec&t=1s

Look at your first screenshot, you can see a scope field. You need to set scope list there. Space between each of them for Google API

1 Like

thank you so much! you mentioned I need to set scope “list”, I tried to use “;” but it doesn’t work, so I just put one scope “https://www.googleapis.com/auth/userinfo.email” there, and it seems working! next step, I need to figure out how to read emails via the API connector. you mentioned there’s a lots info. in the forum but I can’t find any… sorry to bother you again if you could give me directions, I would greatly appreciate it.

you need to separate scopes by space
You will need to add scopes to read email (or more depending of what is the final goal)
For example: https://www.googleapis.com/auth/gmail.readonly will allow you to read email