Google Calendar API - 针对重复活动的实例更改了Google事件ID

问题描述 投票:0回答:1

我发现我的数据库中的重复事件实例重复,因为谷歌事件ID已更改,我无法重现更改。

googleEventId已从RecurringEventID_DateofInstance更改为NewRecurringEventID_DateOfInstance。 (即5uhhll3sgl64h7hl93f5j0exsf_20181217T184500Z至5uhhll3sgl64h7hl93f5j0exsf_R20180709T174500_20181217T184500Z

NewRecurringEventID = PreviousRecurringEventID_R + DateRecurringEventsEditedFollowingEvents(即5uhhll3sgl64h7hl93f5j0exsf_R20180709T174500)。

一些背景:我正在使用Google Events List api,并且ShowDeleted = true且SingleInstances = true

我已经阅读了以下文章,该文章解释了为什么recurring_id会更改,如果事件的名称(不是更改重复模式的内容)更新了已编辑的实例和所有后续事件实例。 - When recurring id is generated with format previous_event_id+_R+date

我已经尝试复制该问题,但是当我更改此事件的事件名称和所有后续事件实例时,recurring_id会按预期更改,但google事件ID将保留为原始ID。 (这是我希望谷歌日历活动api可以工作的方式)

我想知道什么可以导致谷歌事件id更新成为新的recurringID_DateOfInstance而不是保留为oldRecurringID_DateOfInstance?

谢谢您的帮助

google-api google-calendar-api
1个回答
2
投票

当事件从单个事件更改为定期事件或重复事件变为单个事件(不重复)时,Google事件ID可能会发生变化。

当用户将单个事件编辑为周期性事件时,Google事件重复出现的ID等于旧事件ID,事件ID将成为旧事件ID加上附加到其上的事件日期。

例如:google event id = '5omhetdbudsbrh9cmh0p0ucs0k' google recurring event id = ''

然后用户更改事件以使其成为重复发生的事件

google event id = '5omhetdbudsbrh9cmh0p0ucs0k_20180910T230000Z' google recurring event id = '5omhetdbudsbrh9cmh0p0ucs0k'

然后用户将事件更改为单个(非重复事件)

google event id = '5omhetdbudsbrh9cmh0p0ucs0k' google recurring event id = ''

© www.soinside.com 2019 - 2024. All rights reserved.