I'm trying to use the Google Calendar API method gapi.client.calendar.events.list to retrieve events on the calendar now.
I can successfully filter on start date and end date. But, filtering on things that start today doesn't help me if an event started yesterday and is still on-going.
var request = gapi.client.calendar.events.list({
'calendarId': 'my calendar id',
// shows things that have not yet started
'timeMin': (new Date()).toISOString(),
'showDeleted': false,
'singleEvents': true,
'orderBy': 'startTime'
});
How do I find the list of things on a calendar that are currently going on?
I'd (obviously) like to avoid pulling a week's worth of events and parsing through it.