谷歌日历的 freeBusy 方法似乎不会接受超过两个月左右的 timeMin/timeMax 范围。我应该如何找到从现在到永远(或未来的遥远点)的日历范围的忙/闲信息?
要求:
{
"items": [
{
"id": "MY_GMAIL_CALENDAR_ID"
}
],
"timeMin": "2015-09-19T00:00:00-04:00", // today
"timeMax": "2016-09-19T00:00:00-04:00" // 1 year from now
}
回复:
{
"error": {
"errors": [
{
"domain": "calendar",
"reason": "timeRangeTooLong",
"message": "The requested time range is too long.",
"locationType": "parameter",
"location": "timeMax"
}
],
"code": 400,
"message": "The requested time range is too long."
}
}