【问题标题】:Hide some events from specific user on Google Calendar在 Google 日历上对特定用户隐藏一些事件
【发布时间】:2013-09-13 22:09:44
【问题描述】:

是否可以对特定用户隐藏共享 Google 日历上的某些事件?

这是我想要的一个例子:

Calendar Shared with 2 other persons: Person A and Person B.
I add an Event named Event 1.
Me and Person A should see it but Person B should not.
I add an Event named Event 2.
Me and Person B should see it but Person A should not.

我在某处读到 Google 日历有 ACL,但是它们可以用于每个事件吗?

目前,我使用Zend_Gdata_Calendar 来显示我的所有事件。

根据正确答案,我设法将 参加者Zend_Gdata_Calendar 一起使用:

$who[0] = $service->newWho();
$who[0]->setEmail("theemail@gmail.com");
$who[0]->setValueString("Person Name");
$stat = $service->newAttendeeStatus();
$stat->setValue('http://schemas.google.com/g/2005#event.accepted');
$who[0]->setAttendeeStatus($stat);
$event->setWho($who);

【问题讨论】:

    标签: php zend-framework permissions google-calendar-api acl


    【解决方案1】:

    请参阅 Google 的 help article,了解私人活动与公共活动的运作方式。假设您想创建对您和 A 可见的事件,您应该能够:

    1. 授予 A 和 B 阅读(或最多编辑)日历的权限。
    2. 以编程方式创建event 并将visibility 属性设置为private
    3. 在活动创建期间将人员 A 添加为 attendee
    4. 您和人 A 应该能够看到所有事件详细信息。
    5. B 应该可以看到预订的时间,但看不到活动详情。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-11-29
      • 2012-10-25
      • 1970-01-01
      • 2014-05-26
      • 1970-01-01
      • 1970-01-01
      • 2011-01-10
      相关资源
      最近更新 更多