google-api - Google Sheets API - 从 google 登录迁移
问题描述
我正在关注https://developers.google.com/sheets/api/quickstart/js上的 Google Sheets API javascript 快速入门
他们似乎使用的是旧样式的 google 登录,并且文档似乎遵循已弃用的登录方法。
使用谷歌一键登录的合适方法是什么?似乎用户使用谷歌登录,然后我必须提供另一个谷歌登录按钮来启动 gapi 表格客户端?
更新:我得到的错误'gapi.client.sheets.spreadsheets.create(params);' 是:
create error: Request is missing required authentication credential.
Expected OAuth 2 access token, login cookie or other valid authentication credential.
See https://developers.google.com/identity/sign-in/web/devconsole-project
控制台中指定的 URL 以横幅消息“我们将停止使用 Google Sign-In JavaScript Platform Library for web”开头。
解决方案
推荐阅读
- java - 如何从 DB2 中的逻辑表中获取主键?
- java - 如何在 java 中从 MultipartHttpServletRequest 写入文件
- spring-boot - RabbitMQ 消息至少一次交付的可靠性
- android - GestureDetector onTap() 在释放模式下不起作用 [颤振]
- mysql - SELECT * FROM db1 WHERE db1.table.value = db2.table.value
- javascript - 在 Windows 10 上全局安装 ESLint + babel-eslint 解析器
- c# - 我收到错误,函数contactDeleteById需要参数@contactID,但我认为下面的代码没有任何问题
- azure - 如何确保 blob 文件名在 Azure 存储上是唯一的
- groovy - 将集合(列表)用作布尔值的 Groovy 语义
- sql - 这两个 SELECT 语句中哪一个是正确的?