【问题标题】:Update shared event as guest(GuestsCanModify) using google calendar api使用谷歌日历 API 以访客身份更新共享事件(GuestsCanModify)
【发布时间】:2014-12-15 17:08:21
【问题描述】:

我设法使用谷歌日历 API 创建了一个活动并向其中添加了参与者。但是当我尝试更新同一个事件时,现在以访客身份登录,我无法更新它。即使我将GuestsCanModify 值设置为true。有谁知道是否可以以访客身份更新活动并将更改复制到原始活动,就像您更新原始活动时已经发生的那样,它会自动更新客人日历上的活动? 下面是我用来创建事件的一小段代码。

Google.Apis.Calendar.v3.Data.Event event = new Google.Apis.Calendar.v3.Data.Event();
event.Summary = resCalendario.Titulo;
event.Location = resCalendario.Local;
event.Description = resCalendario.Obs;
event.GuestsCanModify = true;

【问题讨论】:

    标签: c# api calendar


    【解决方案1】:

    此处的日历 API 参考不完整,但似乎 guestCanModify 位不可通过 API 写入。

    这个 2011 年的谷歌群组帖子有一个谷歌员工的回复说你不能通过 API 设置那个位:https://groups.google.com/forum/#!topic/google-calendar-help-dataapi/5GEb29IEWrw

    这里是事件的参考页面:https://developers.google.com/google-apps/calendar/v3/reference/events

    该页面上的属性表包含其他两个访客权限设置(guestsCanInviteOthers、guestsCanSeeOtherGuests)的条目,但缺少 guestCanModify。在我自己的测试中,我发现尝试在授权用户创建或修改的条目上设置此位被忽略,这与旧论坛帖子一致。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-08-22
      • 1970-01-01
      • 1970-01-01
      • 2019-03-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多