Google Calendar API不返回共享日历 [英] Google Calendar API don't return shared calendars

查看:95
本文介绍了Google Calendar API不返回共享日历的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

初始情况:

  • 在我们的一项服务中,我们使用一个服务帐户来调用Google Calendar API.
  • 用户可以通过其技术电子邮件地址与此技术帐户共享日历 (@ .iam.gserviceaccount.com).
  • 由于共享日历,我们可以通过API查询日历(CalendarList/List: https://developers.google.com/calendar/v3/reference/calendarList/list )
  • 所有这些都可以正常工作好几年了.
  • In one of our services, we use a service account to call Google Calendar API.
  • User can share their calendars with this technical account via its technical emailaddress (@.iam.gserviceaccount.com).
  • As calendars are shared, we can query them via API (CalendarList/List: https://developers.google.com/calendar/v3/reference/calendarList/list)
  • All this was working fine for several years without problem.

当前问题:

  • 我们最近发现,不再通过API调用返回新共享的日历.过去共享的日历仍会返回(!)
  • 我们知道pageToken并对其进行处理-这不是问题.如果有一个(测试)帐户,当前仅共享8个日历,而我们无法获得更多日历.
  • 后端通话期间没有错误/警告
  • Google开发者控制台上没有错误/警告/配额问题

我们尚未收到Google关于Calendar API更改或帐户限制的任何警告/警报.另外,我还没有发现任何有关Google日历的已知问题/停机.

We haven't received any warning/alert from Google about Calendar API changes or limitations of our account(s). Also I haven't found any publicly known issue/outage about Google Calendar.

可能是什么问题?

我应该将其报告给Google吗?如果是的话,究竟如何?我所能找到的只是一个"Google Cloud Platform免费试用疑难解答",其中(除了使用stackoverflow的建议外),我所能做的与特定问题和技术支持"有关的就是开始聊天",这导致了到内部Google网站(moma).还有什么我可以尝试的吗?

Should I report it to Google? If yes how exactly? All I could found was a "Google Cloud Platform Free Trial Troubleshooter", where (apart from a suggest to use stackoverflow ;]) all I can do with a "specific question and technical support" is to "start a chat", which leads to an internal Google site (moma). Is there anything else I could try?

任何帮助将不胜感激!

更新: 官方文档中有间接跟踪/提示,表明Google已更改(自动)接受共享日历的行为-比较共享现有日历"部分的当前版本和2019年8月版本:

UPDATE: There as indirect trace/hint in official documents that Google has changed this behaviour of (automatically) accepting shared Calendars - compare the "Share an existing calendar" section's current and 2019 august version:

  • https://support.google.com/calendar/answer/37082?hl=en
  • https://web.archive.org/web/20190904092735/https://support.google.com/calendar/answer/37082?hl=en

更新2 感谢@DaImTo(必须使用Google帐户),我已成功将此问题报告给Google: https://issuetracker.google.com/issues/148804709

UPDATE 2 I have managed to report this issue to Google thanks to @DaImTo (google account required): https://issuetracker.google.com/issues/148804709

要点如下:

  • 由于最近的行为更改,任何帐户都必须明确地接受"已与他们共享的日历."
  • 状态:无法解决(预期行为)

推荐答案

最近有更改

与用户/服务帐户共享日历后,该用户/服务帐户必须通过将共享日历添加到他的日历列表中来接受"共享.

There has been a recent change

After you share a calendar with a user / a service account, this user / service account has to "accept" the sharing by adding the shared calendar to his calendar list.

这可以通过在用户界面中单击添加此日历"来完成(对于用户而言),也可以使用方法

This can either be done (in case of a user) from the UI by clicking "Add this calendar" or programmatically (works both for users and service accounts) with the method CalendarList: insert.

这篇关于Google Calendar API不返回共享日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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