Php 在谷歌日历上对特定用户隐藏某些事件
是否可以对特定用户隐藏共享谷歌日历上的某些事件 下面是我想要的一个例子:Php 在谷歌日历上对特定用户隐藏某些事件,php,zend-framework,permissions,google-calendar-api,acl,Php,Zend Framework,Permissions,Google Calendar Api,Acl,是否可以对特定用户隐藏共享谷歌日历上的某些事件 下面是我想要的一个例子: 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 Per
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 Calendar有ACL,但它们可以用于每个事件吗
目前,我正在使用Zend_Gdata_Calendar
显示我的所有事件
根据正确的答案,我成功地通过Zend_Gdata_日历添加了与会者:
$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);
参见谷歌关于私人与公共活动如何运作的文章。假设您希望创建对您和某人可见的事件,您应该能够:
为人员A和B提供日历的read(或最多为editor)访问权限
以编程方式创建,并将可见性
属性设置为私有
在活动创建过程中将人员A添加为与会者
您和个人A应该能够看到所有事件的详细信息
人员B应能看到预定的时间,但看不到活动详情