gpt4 book ai didi

php - google sheets 将数据附加到 sheet api 返回 401 身份验证错误

转载 作者:行者123 更新时间:2023-12-01 15:43:29 25 4
gpt4 key购买 nike

当我请求将数据附加到 google 工作表时,它返回 401 身份验证错误。我已经尝试使用 oauth(访问 token )和 api key ,但它始终返回 401 身份验证错误

enter image description here

最佳答案

您发出的请求需要 Oauth2 身份验证。 key 参数用于添加 api key 。 API key 仅允许访问公共(public) API 数据。

您应该将 access_token= 与有效的 Google Oauth2 访问 token 一起使用。

关于php - google sheets 将数据附加到 sheet api 返回 401 身份验证错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46564506/

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