0
我试图从2014-03-31和2014-04-07之间的日历中获取所有事件,并将这些日期记录在我的请求中。它给了我250场大事,其中第一场是2012-02-20。通过开始日期和结束日期获取gapi日历事件不起作用
我唯一能想到的就是它忽略了我的开始和结束过滤器。我是否犯了错字,习惯了错误的参数或错误?
function getEvents(calendarId) {
gapi.client.load('calendar', 'v3', function() {
var request = gapi.client.calendar.events.list({
calendarId: calendarId,
start: '2014-03-31',
end: '2014-04-07'
});
request.execute(function(resp) {
console.log(resp.items.length);
});
});
}
我试着格式化为藏汉以下无济于事:
"start": {
"date": date
}