【发布时间】:2020-10-04 21:36:50
【问题描述】:
在 Google 日历中,没有“修改活动”权限的与会者可以私下更改他们的活动副本。这些更改仅反映在他们的日历中。
在以下示例中,创建者邀请我参加活动,我已将开始时间更改为 45 分钟后:
这反映在 Google Calendar API 响应中。
创作者的事件回应:
{
"kind": "calendar#event",
"etag": "\"123\"",
"id": "abc",
"status": "confirmed",
"htmlLink": "https://www.google.com/calendar/event?eid=abc",
"created": "2020-06-14T11:49:54.000Z",
"updated": "2020-06-14T12:43:41.896Z",
"summary": "Non Creator changes start_time and saves",
"creator": {
"email": "david@example.com",
"self": true
},
"organizer": {
"email": "david@example.com",
"self": true
},
"start": {
"dateTime": "2020-06-14T11:00:00+01:00"
},
"end": {
"dateTime": "2020-06-14T12:00:00+01:00"
},
"iCalUID": "abc123@google.com",
"sequence": 0,
"attendees": [
{
"email": "david@example.com",
"organizer": true,
"self": true,
"responseStatus": "accepted"
},
{
"email": "ryan@example.com",
"responseStatus": "accepted"
}
],
"hangoutLink": "https://meet.google.com/abc",
"conferenceData": {
...
},
"reminders": {
"useDefault": true
}
}
与会者的活动响应:
{
"kind": "calendar#event",
"etag": "\"123\"",
"id": "abc",
"status": "confirmed",
"htmlLink": "https://www.google.com/calendar/event?eid=abc",
"created": "2020-06-14T11:49:54.000Z",
"updated": "2020-06-15T12:19:25.966Z",
"summary": "Non Creator changes start_time and saves",
"creator": {
"email": "david@example.com"
},
"organizer": {
"email": "david@example.com"
},
"start": {
"dateTime": "2020-06-14T11:45:00+01:00"
},
"end": {
"dateTime": "2020-06-14T12:30:00+01:00"
},
"iCalUID": "abc123@google.com",
"sequence": 0,
"attendees": [
{
"email": "david@example.com",
"organizer": true,
"responseStatus": "accepted"
},
{
"email": "ryan@example.com",
"self": true,
"responseStatus": "accepted"
}
],
"hangoutLink": "https://meet.google.com/abc",
"conferenceData": {
...
},
"reminders": {
"useDefault": true
}
}
现在提出的问题是根据与会者的请求确定活动的规范版本。在上述响应中,没有任何标志表明它包含私有更改。
是否有这种方法可以确定对 Google Calendar API 中事件的私人更改?
【问题讨论】: