Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google calendar API do not return events list

Recently after adding new events in Google calendar and try to fetch it from Google calendar API, I never get the new events list for the primary calendarId of my account.

Also I tried to fetch from developer console: https://developers.google.com/google-apps/calendar/v3/reference/events/list#try-it which gives the same empty list of items as response, even though the future events exists.

But I am able to fetch the events list of other calendar list. eg. Holidays, shared calendar from friends etc.

like image 371
Suhas Giriraj Avatar asked Jul 28 '14 16:07

Suhas Giriraj


1 Answers

I also had the problem of events().list(calendarId=<calendar_id>, singleEvents=False) not returning any events (using python API). I tested with a secondary calendar with one recurring event. Solved by adding parameter maxResults=9999. It turned out that maxResults value 1413 or higher is needed to return the event. Weird, seems to be a bug.

like image 55
Benni5K Avatar answered Sep 22 '22 05:09

Benni5K