Google Calendar API-不再授权进行读取? [英] Google Calendar API - no longer authorized for reads?

查看:148
本文介绍了Google Calendar API-不再授权进行读取?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,使用Calendar API从公开可用的Google日历中提取所有事件.

So, using the Calendar API to pull all events from a publicly available Google Calendar.

直到今天早上,一切都很好.

This were working fine until this morning.

由于我没有更新或进行任何数据更改,因此我们实现了API密钥,用于访问只读数据,如下所示:

As I'm not updating or doing any data alteration, we've implemented an API key to access read only data as follows:

https://www.googleapis.com/calendar/v3/calendars/[calendar ID]/events?timeZone=EDT&timeMin=2020-06-30T04:00:00.000Z&maxResults=6&singleEvents=true&orderBy=startTime&key=[API key]

昨天收盘不错,今天返回:

Yesterday, pulled fine, today returns:

代码:401 消息:无效的凭据

code: 401 message: invalid credentials

对此有何想法?它会影响此日历代码的几种实现(不同的键,域等),但使用的是相同的基本方法.

Any thoughts on this? It's affecting several implementations of this calendar code (different keys, domains, etc) but with the same basic methodology.

我尚未实现gapi客户端javascript库,现在可能会开始研究.

I have not implemented the gapi client javascript library, may begin looking into that now.

推荐答案

此问题现已由Google修复.所有API密钥用法均应正常运行.

This is now fixed by Google. All API key usage should be working as normal.

看起来他们最终遇到了一些问题:

Looks like they had some issues on their end:

这篇关于Google Calendar API-不再授权进行读取?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆