Events.list 返回事件资源列表。
"kind": "calendar#event",
"etag": "\"9722590000\"",
"id": "3nmhbd0465ts1enliigj4",
"status": "confirmed",
"htmlLink": "https://www.google.com/calendar/event?eid=285781",
"created": "2015-04-13T07:24:21.000Z",
"updated": "2015-04-13T07:24:21.509Z",
"summary": "My event",
"location": " ",
"creator": {
"email": "XXX@gmail.com",
"displayName": "XXX",
"self": true
},
"organizer": {
"email": "XXX@gmail.com",
"displayName": "XXX",
"self": true
},
"start": {
"dateTime": "2015-04-21T19:00:00+02:00",
"timeZone": "Europe/Copenhagen"
},
"end": {
"dateTime": "2015-04-21T21:00:00+02:00",
"timeZone": "Europe/Copenhagen"
},
"recurrence": [
"RRULE:FREQ=WEEKLY;COUNT=24;BYDAY=TU"
],
"iCalUID": "XXX@google.com",
"sequence": 0,
"reminders": {
"useDefault": false,
"overrides": [
{
"method": "popup",
"minutes": 45
}
]
}
如果事件有一个循环集,您可以在其中找到它。
“重复”:[“RRULE:FREQ=WEEKLY;COUNT=24;BYDAY=TU”]
我看不到您的代码是如何访问它的,但是如果您在 event.list 底部进行测试,您会注意到,如果您可以访问日历,则应该可以访问重复字段。