Google api 服务器 api 调用的身份验证客户端令牌
Google api auth client token for server api calls
我想将用户 google 日历与我的网络应用程序集成。我一直在查看 google 文档,但现阶段尚不清楚我是否可以使用 java-script 库中的简单下降验证用户并在我的服务器上使用该 Auth 令牌进行简单 API 调用日历 API?
您可能需要查看此 Google Calendar API Quickstart 以供参考。
您的应用程序发送到 Google Calendar API must include an authorization token. The token also identifies your application to Google. Your application must use OAuth 2.0 to authorize requests. No other authorization protocols are supported. If your application uses Google Sign-In 的每个请求,都会为您处理授权的某些方面。
初始用户授权后,使用 immediate:true
模式调用 gapi.auth.authorize
将获得授权令牌,无需用户交互。
希望对您有所帮助!
我想将用户 google 日历与我的网络应用程序集成。我一直在查看 google 文档,但现阶段尚不清楚我是否可以使用 java-script 库中的简单下降验证用户并在我的服务器上使用该 Auth 令牌进行简单 API 调用日历 API?
您可能需要查看此 Google Calendar API Quickstart 以供参考。
您的应用程序发送到 Google Calendar API must include an authorization token. The token also identifies your application to Google. Your application must use OAuth 2.0 to authorize requests. No other authorization protocols are supported. If your application uses Google Sign-In 的每个请求,都会为您处理授权的某些方面。
初始用户授权后,使用 immediate:true
模式调用 gapi.auth.authorize
将获得授权令牌,无需用户交互。
希望对您有所帮助!