Google calendar api 为什么Google Calendar API在时间受限时返回不一致的事件?
我想通过谷歌日历查询它。在对timeMin和timeMax之间的I进行身份验证后。在以下情况下,从2015-09-30T14:19:46.595026+02:00到2015-10-14T14:19:46.594026+02:00之间的“现在”算起+/-7天: 结果,我得到了两个事件——但时间不对:Google calendar api 为什么Google Calendar API在时间受限时返回不一致的事件?,google-calendar-api,Google Calendar Api,我想通过谷歌日历查询它。在对timeMin和timeMax之间的I进行身份验证后。在以下情况下,从2015-09-30T14:19:46.595026+02:00到2015-10-14T14:19:46.594026+02:00之间的“现在”算起+/-7天: 结果,我得到了两个事件——但时间不对: { "kind": "calendar#events", (...) "items": [ { "kind": "calendar#event", (...) "start": {
{
"kind": "calendar#events",
(...)
"items": [
{
"kind": "calendar#event",
(...)
"start": {
"dateTime": "2015-01-09T07:00:00+01:00",
"timeZone": "Europe/Paris"
},
"end": {
"dateTime": "2015-01-09T07:15:00+01:00",
"timeZone": "Europe/Paris"
},
(...)
},
{
"kind": "calendar#event",
(...)
"start": {
"dateTime": "2015-01-10T07:30:00+01:00",
"timeZone": "Europe/Paris"
},
"end": {
"dateTime": "2015-01-10T07:45:00+01:00",
"timeZone": "Europe/Paris"
(...)
}
]
}
从一月份开始有两项活动。它们确实存在于日历中,并且是日历中的前两个事件,它们是重复事件,没有结束日期
为什么时间限制不有效
如果我删除时间限制,我会得到更多的事件,但仍然不是所有的,我想这可能是API的限制,需要一些滚动-我没有调查这一点,因为我的时间限制将只匹配大约10个条目。日期各不相同,但比现在更接近1月份。我缺少singleEvents参数,该参数默认为False
是否将重复事件扩展为实例并仅返回
单个一次性事件和重复事件的实例,但不是
潜在的重复事件本身。可选择的默认值是
错
{
"kind": "calendar#events",
(...)
"items": [
{
"kind": "calendar#event",
(...)
"start": {
"dateTime": "2015-01-09T07:00:00+01:00",
"timeZone": "Europe/Paris"
},
"end": {
"dateTime": "2015-01-09T07:15:00+01:00",
"timeZone": "Europe/Paris"
},
(...)
},
{
"kind": "calendar#event",
(...)
"start": {
"dateTime": "2015-01-10T07:30:00+01:00",
"timeZone": "Europe/Paris"
},
"end": {
"dateTime": "2015-01-10T07:45:00+01:00",
"timeZone": "Europe/Paris"
(...)
}
]
}