gpt4 book ai didi

google-calendar-api - 将事件设置为锁定

转载 作者:行者123 更新时间:2023-12-04 03:01:29 24 4
gpt4 key购买 nike

我想插入一个“锁定”的新事件:不再修改主要字段,例如:“摘要”、“描述”、“位置”、“开始”、“结束”或“重复”,如 API 站点上所述:https://developers.google.com/google-apps/calendar/v3/reference/events#resource
但是,在事件出现在日历上之后,我仍然可以对其进行修改。
这里有人处理“锁定”事件吗?请帮帮我。

非常感谢。

最佳答案

我遇到了同样的情况:我试图使用 API v3 的服务帐户插入锁定的事件,但没有奏效。所以,经过一番研究,我找到了这个解释,并意识到锁定“主副本”事件是不可能的。
如此处所述 https://developers.google.com/google-apps/calendar/v3/whats-new

The locked flag for events indicates that the main event fields ("summary", "description", "location", "start", "end", or "recurrence") cannot be changed. Attempts to do so are rejected with a 403 Forbidden response. This can only be set for attendees' copies of an event, never for the organizer (i.e. the master copy). Other event details, such as extended properties, can still be changed. This is not the same as "guestCanModify: false", which indicated that modifications aren't reflected on copies other than the user's. This field is read-only.

关于google-calendar-api - 将事件设置为锁定,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14930041/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com