简体   繁体   中英

How do I get access User's Google Calendar in my Ruby API when using it with React as a Frontend?

So, I am creating an app where I am using React as a Frontend and Rails as a Backend with Postgres database. I am using Google Oauth to authenticate users and also to get the access token so that I can make use of that access token to get User's Google Calendar Events. So, when the user Log's In to my app using Google Login, I will get the access token in React Frontend and then I will send it to the Ruby Backend API to store inside the user's table in access_token column. So, what should I do next if I want that user's Calendar Events?

I am not able to find any guide on this, so if anyone of you can help me with step by step procedure on what to do next then that will be great

Thank you!

You can you use google_calender gem. Follow the configuration provided here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM