【发布时间】:2019-12-16 10:20:38
【问题描述】:
使用 google 日历 API,我可以让访问其页面或帐户的所有其他用户看到一个用户的单个日历事件吗?
【问题讨论】:
-
是的,如果您查看文档,它就在这里developers.google.com/calendar/concepts/sharing
使用 google 日历 API,我可以让访问其页面或帐户的所有其他用户看到一个用户的单个日历事件吗?
【问题讨论】:
你必须修改资源的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
【讨论】: