首页 > 解决方案 > Google Calendar API 未返回所有重复事件实例

问题描述

一些有用的信息:

1.) 我是这个每周重复活动的创建者

2.) 除 11 月 2 日的事件外,所有其他事件实例均已返回

3.)问题中的事件是“ IOS会议

4.) 如果我通过它的 ID 专门请求它,我可以从 Google API 获取特定事件,但如果我请求我的整个日历,它不会显示

我在这里通过他们的控制台使用 Google Calendar API ,在响应中它不返回此事件。如果我将日期范围更改为包括 11 月 9 日(这是同一重复系列中的不同 IOS 会议),那么它会很好地返回该事件,但不会返回 11 月 2 日的事件。

我在我的谷歌日历中看到了谷歌事件,如这张截图所示这个特定的 IOS 会议在我使用谷歌日历控制台时显示,但在我使用 API 时不显示

这是我从谷歌日历 API 专门通过 ID 获取事件时的样子。可以看到创建者是的邮箱

Google_Service_Calendar_Event {#18698
 +anyoneCanAddSelf: null,
 +attendeesOmitted: null,
 +colorId: null,
 +created: "2020-07-26T05:11:48.000Z",
 +description: """
    \n
   Let's chat about this event \n
   """,
 +endTimeUnspecified: null,
 +etag: ""3208875059494000"",
 +guestsCanInviteOthers: null,
 +guestsCanModify: null,
 +guestsCanSeeOtherGuests: null,
 +hangoutLink: "https://meet.google.com/agu-ndeu-wfw",
 +htmlLink: "https://www.google.com/calendar/event?eid=MGhvZjliNGM4ZDNtaDdxaDM3bWdoNms0MnNfMjAyMDExMDJUMjAwMDAwWiB2N3M0YmExdG5yM2x1ZmwwYjdnZjNlZzQwc0Bn",
 +iCalUID: "xxxxxxxxxxxxxx@google.com",
 +id: "xxxxxxxxxxxxxx_20201102T200000Z",
 +kind: "calendar#event",
 +location: null,
 +locked: null,
 +privateCopy: null,
 +recurrence: null,
 +recurringEventId: "xxxxxxxxxxxxxx",
 +sequence: 0,
 +status: "confirmed",
 +summary: "iOS Meeting",
 +transparency: null,
 +updated: "2020-11-03T21:05:29.747Z",
 +visibility: null,
 +"creator": Google_Service_Calendar_EventCreator {#6218
   +displayName: null,
   +email: "<my email is here>", <<<<<<<-----------
   +id: null,
   +self: null,
 },
 +"organizer": Google_Service_Calendar_EventOrganizer {#19293
   +displayName: "My Calendar",
   +email: "xxxxxxxx@group.calendar.google.com",
   +id: null,
   +self: true,
 },
 +"start": Google_Service_Calendar_EventDateTime {#18649
   +date: null,
   +dateTime: "2020-11-02T20:00:00Z",
   +timeZone: "America/Los_Angeles",
 },
 +"end": Google_Service_Calendar_EventDateTime {#16575
   +date: null,
   +dateTime: "2020-11-02T21:00:00Z",
   +timeZone: "America/Los_Angeles",
 },
 +"originalStartTime": Google_Service_Calendar_EventDateTime {#17050
   +date: null,
   +dateTime: "2020-11-02T20:00:00Z",
   +timeZone: "America/Los_Angeles",
 },

这可能是谷歌日历 API 错误吗?

标签: google-calendar-api

解决方案


这似乎是一个错误!

已经有一份关于谷歌问题跟踪器的报告详细说明了同样的行为:

Google 似乎确实知道这个问题,但如果它引起问题,您可以在此处提交您自己的错误。我实际上建议这可能是让问题再次曝光的最佳行动方案。

您也可以点击上述页面左上角问题编号旁边的 ☆,让 Google 知道更多人遇到此问题,因此更有可能更快地被看到。


推荐阅读