403 在 Google 日历 API 上禁止使用 endTimeUnspecified?

403 Forbidden with endTimeUnspecified on Google calendar API?

似乎 Google 日历 API 不支持插入带有 endTimeUnspecified 的事件 (service.events().insert(calendarId='primary', body=ev))(又名全天事件),至少使用 google-api-python-客户端库。

我的代码可以正常运行开始结束事件,但 returns 403 禁止全天事件。

我花了两周多的时间研究这个,首先是 and lately reporting the problem as an issue on google-api-python-client GitHub tracker

正如 Jon Parrot 在 GitHub 上所建议的,我向 google-calendar-api 的朋友们提出这个问题:

全天活动必须指定结束时间。由于 end 是唯一的,今天的全天活动将从 20170122 开始,到 20170123 结束。endTimeUnspecified 属性 是只读的。