Google 集成到 Web 应用程序中
Google integration in web application
我想在我的网络应用程序中集成 gmail 和 google 日历。我可以通过 google 登录,然后 api 调用 gmail 或 google 日历 API,具体取决于我从 google.[=11 请求的授权=]
我还没有找到同时请求多个 API 授权的方法。这可能吗?是否可以接收一个访问令牌,以便将其用于针对多个 Google 的 API 之一的请求?
据我所知可以做到。如果您尝试在 Google Oauth 2.0 Playground 和 select 多个 API 范围内测试它。
"scope": "https://www.googleapis.com/auth/calendar https://mail.google.com/ https://www.googleapis.com/auth/drive"
它应该是这样的:
希望对您有所帮助。
我想在我的网络应用程序中集成 gmail 和 google 日历。我可以通过 google 登录,然后 api 调用 gmail 或 google 日历 API,具体取决于我从 google.[=11 请求的授权=]
我还没有找到同时请求多个 API 授权的方法。这可能吗?是否可以接收一个访问令牌,以便将其用于针对多个 Google 的 API 之一的请求?
据我所知可以做到。如果您尝试在 Google Oauth 2.0 Playground 和 select 多个 API 范围内测试它。
"scope": "https://www.googleapis.com/auth/calendar https://mail.google.com/ https://www.googleapis.com/auth/drive"
它应该是这样的:
希望对您有所帮助。