Google 日历 API - 未获取重复事件实例

Google Calendar API - recurring events instances are not fetched

我正在尝试使用 V3 API 从 Google 日历中获取所有事件。我注意到一个关于重复事件的问题。 对于某些周期性事件,在某些日历上,仅提取第一个实例(例如 - 提取总共 8 个实例中的前 5 个)。

一些额外的细节:

如有任何意见,我们将不胜感激。谢谢!

您应该在调用 API 的 'list' 命令时将 "singleEvents" 标志设置为 True。

来自 API documentation:

Whether to expand recurring events into instances and only return single one-off events and instances of recurring events, but not the underlying recurring events themselves. Optional. The default is False.