【问题标题】:"API Key not valid" error when reading tasks from Google calendar从 Google 日历读取任务时出现“API 密钥无效”错误
【发布时间】:2020-06-05 22:39:08
【问题描述】:

在我的 Winform 应用程序中,我使用 Google API 来读取日历和联系人数据。每当我阅读任务时,我都会收到“API Key not valid. Please pass a valid API KEY [400]”错误。我能够使用相同的 API 令牌读取和写入日历事件数据。 OAuth 请求中的范围包括“https://www.googleapis.com/auth/tasks”。 OAuth 用户授权屏幕还包括“创建、编辑、组织和删除所有任务”。

基本上我得到的错误没有意义,因为我能够使用相同的 API 密钥(令牌)来读取其他 Google 数据,但不知何故未能完成任务。此外,如果我在循环中读取大量日历事件数据,我会得到同样的错误。错误将发生在 10-30 条记录之间。

感谢任何帮助。

谢谢

斯蒂芬

【问题讨论】:

    标签: winforms google-api


    【解决方案1】:

    几天前我开始遇到同样的错误。 仍然没有解决方案(

    【讨论】:

    猜你喜欢
    • 2015-01-16
    • 1970-01-01
    • 1970-01-01
    • 2020-10-13
    • 1970-01-01
    • 2018-12-01
    • 1970-01-01
    • 1970-01-01
    • 2019-06-24
    相关资源
    最近更新 更多