MilkMan
MilkMan

Reputation: 218

Google Calendar API - recurring events instances are not fetched

I'm trying to fetch all events from a Google calendar using V3 API. I've noticed an issue regarding recurring events. For some recurring events, on some calendars, only the first instances are fetched (for example - first 5 out of total of 8 instances are fetched).

Few additional details:

Any inputs will be appreciated. Thanks!

Upvotes: 6

Views: 1893

Answers (1)

Baruch Oxman
Baruch Oxman

Reputation: 1636

You should set the "singleEvents" flag to True when calling the the API's 'list' command.

From the 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.

Upvotes: 10

Related Questions