[英]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.所以,我正在创建一个应用程序,其中我使用 React 作为前端,Rails 作为后端和 Postgres 数据库。 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.
我正在使用 Google Oauth 对用户进行身份验证并获取访问令牌,以便我可以使用该访问令牌来获取用户的 Google 日历事件。 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.
因此,当用户使用 Google 登录登录到我的应用程序时,我将在 React 前端获取访问令牌,然后将其发送到 Ruby 后端 API 以存储在用户表中的 access_token 列中。 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!谢谢!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.