Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Calendar Javascript API listing ALL events from ALL calendars

I can list a selected calendar events by adding the calendarID to the script:

   var request = gapi.client.calendar.events.list({ 
       'calendarId': 'primary'
    }); 

this gets the primary calendar and by swopping out the 'primary' to the calendar id required

   'calendarId': '[email protected]'

But what I would like to do is list ALL events from ALL calendars, so is there away to do this like below for EG:

    'calendarId': 'ALL'
like image 997
Simon Davies Avatar asked Feb 10 '12 13:02

Simon Davies


1 Answers

primary is the only special value that the documentation specifies. If the Calendar API does support such a special value, it is not publicly supported, and could be removed or changed at any time.

Your best option is to the calendar.calendarList.list method to get a list of all the users calendars and list the events from each one.

like image 71
abraham Avatar answered Oct 05 '22 22:10

abraham