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'
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With