gpt4 book ai didi

ruby - Google 表格 API V4 403 错误

转载 作者:太空宇宙 更新时间:2023-11-03 16:43:39 25 4
gpt4 key购买 nike

我正在通过 Google Sheets V4 REST API 和 Ruby 从电子表格中提取数据:

https://sheets.googleapis.com/v4/spreadsheets/MASTER_SPREADSHEET_ID/values/A:GH?key=GOOGLE_SERVER_KEY

我以前有这个工作,直到电子表格被删除并重新创建。现在,新电子表格出现 403 错误。

enter image description here

API:

enter image description here

文档说明您可以只在 url 后附加一个 API key ,我的解释有误吗?

enter image description here

最佳答案

我遇到了同样的问题并解决了。问题在于您尝试访问的 Google 工作表的公共(public)范围。

  1. 输入您要访问的电子表格。
  2. 点击分享按钮。
  3. 点击查看链接。

如果您将要访问的电子表格的公共(public) View 设置为链接 View ,则所有想要访问该链接的用户都可以访问它。

关于ruby - Google 表格 API V4 403 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39009410/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com