Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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:

  • I've double checked that the query date-range is correct.

  • Problem occurred few times - for different Google Apps organizations.

  • Problem occurs also if I try to fetch the events from the calendar of the event creator.
  • We are using Google's python library for fetching.

Any inputs will be appreciated. Thanks!

like image 243
MilkMan Avatar asked May 28 '15 10:05

MilkMan


1 Answers

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.

like image 173
Baruch Oxman Avatar answered Sep 22 '22 02:09

Baruch Oxman