【发布时间】:2015-09-20 02:06:13
【问题描述】:
Google 日历的 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."
}
}
【问题讨论】:
-
您可以针对加起来为“永远”的各个时间范围发送多个请求
标签: google-api google-calendar-api google-api-client google-client