0
我试图使用Google Calendar API方法gapi.client.calendar.events.list来检索日历现在的上的事件。如何从Google日历API获取当前事件?
我可以成功过滤开始日期和结束日期。但是,如果事件从昨天开始,并且仍在持续进行,那么从今天开始的事情就不会对我有所帮助。
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'
});
如何查找当前正在进行的日历上的事物列表?
我会(显然)喜欢避免拉一周的事件和解析它。
是的,但不会帮我,如果有一个事件怎么回事,现在我的时间min之前开始。例如,如果两天前开始一周的活动,并且我将timeMin设置为今天的开始,那么我将不会看到一周的活动。 – PaulH