【问题标题】:Grant access to google calendar to all users向所有用户授予对谷歌日历的访问权限
【发布时间】:2019-12-16 10:20:38
【问题描述】:

使用 google 日历 API,我可以让访问其页面或帐户的所有其他用户看到一个用户的单个日历事件吗?

【问题讨论】:

标签: google-calendar-api


【解决方案1】:

你必须修改资源的Access Control List

https://developers.google.com/calendar/v3/reference/acl

特别是scope.type 属性。

以下任一方式

"default" - The public scope. This is the default value.
"user" - Limits the scope to a single user.
"group" - Limits the scope to a group.
"domain" - Limits the scope to a domain.

然后是scope.value - 用户或组的电子邮件地址,或域的名称,具体取决于范围类型。 “默认”类型省略。

example 将是

PUT https://www.googleapis.com/calendar/v3/calendars/calendarId/acl/ruleId

read more here

【讨论】:

  • 谢谢。最后一个问题。我仍在阅读文档,我想知道是否可以仅在某种类型的日历上显示事件。因此,如果我的计划是针对遛狗者的,那么他们日历上唯一相关的事件当然是他们可以遛狗的时间,而不是他们计划见朋友或其他个人日历项目的时间。或者,这个问题的答案是让用户仅为相关事件创建辅助日历吗?
猜你喜欢
  • 1970-01-01
  • 2016-07-17
  • 2014-08-11
  • 1970-01-01
  • 2016-04-01
  • 1970-01-01
  • 2020-07-10
  • 2021-10-21
  • 1970-01-01
相关资源
最近更新 更多