在两个日期之间获取日历活动

Kha*_*han 10 google-calendar-api google-api google-api-php-client

如何获取两个特定日期之间的所有事件.例如,我只想在1st of March 2013&之间获取事件28th of March 2013.

我使用的是Google Calendar API v3.在Google Calendar API v1中,可以使用start-min和start-max在2个日期之间进行搜索.我想知道Google Calendar API v3中这两个参数的替换是什么?

Kha*_*han 18

好的,我得到了答案.在谷歌API V3的新参数timeMintimeMax过滤2个日期之间的事件.

  • 为PHP客户端利布斯例如:`$服务 - >事件 - >的listEvents( '主',阵列( '时间min' - > '2013-03-01T00:00:00-04:00', 'timeMax' - >" 2013-03-28T23:59:59-04:00'));`请注意,时间戳采用RFC 3339格式.所有参数均可在此处找到:https://developers.google.com/google-apps/calendar/v3/reference/events/list (5认同)