从 Google 日历获取接下来的 15 个事件(http 请求)

Getting the next 15 Events from Google Calendar (http requests)

我想使用节点 api 访问 public 日历,并以 json 格式检索 15 个即将发生的事件。

这是我目前使用的:

https://www.googleapis.com/calendar/v3/calendars/myCalendarID/events?maxResults=15&key=MyKey

这给了我 15 个事件,但这些事件是 2012 年的前 15 个事件 - 我想从今天开始获得即将到来的 15 个事件。我试过使用这个:

&startMin=2014-08-09T10:57:00-08:00

但结果还是一样。

好的,我刚刚发现您必须 (!!) 同时使用 - timeMin 和 timeMax 字段才能获得下一个事件。我只是尝试使用 TimeMin 参数...