Google 日历 API - 未获取重复事件实例
Google Calendar API - recurring events instances are not fetched
我正在尝试使用 V3 API 从 Google 日历中获取所有事件。我注意到一个关于重复事件的问题。
对于某些周期性事件,在某些日历上,仅提取第一个实例(例如 - 提取总共 8 个实例中的前 5 个)。
一些额外的细节:
我仔细检查了查询日期范围是否正确。
问题发生了几次 - 针对不同的 Google 应用程序组织。
- 如果我尝试从事件创建者的日历中获取事件,也会出现问题。
- 我们正在使用 Google 的 python 库进行抓取。
如有任何意见,我们将不胜感激。谢谢!
您应该在调用 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.
我正在尝试使用 V3 API 从 Google 日历中获取所有事件。我注意到一个关于重复事件的问题。 对于某些周期性事件,在某些日历上,仅提取第一个实例(例如 - 提取总共 8 个实例中的前 5 个)。
一些额外的细节:
我仔细检查了查询日期范围是否正确。
问题发生了几次 - 针对不同的 Google 应用程序组织。
- 如果我尝试从事件创建者的日历中获取事件,也会出现问题。
- 我们正在使用 Google 的 python 库进行抓取。
如有任何意见,我们将不胜感激。谢谢!
您应该在调用 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.