2
A
回答
3
你可以说通过对ACL的API文档去 - 访问控制列表 https://developers.google.com/google-apps/calendar/v2/developers_guide_protocol#AddAcl
1
这是一个老问题,但在这里,如果有人想用它如何与用户共享日历: 这是由ACL 这里做的是在PHP中的例子:
public function sharecalendarwithuser($calendar_id, $user_email, $role)
{
$rule = new Google_Service_Calendar_AclRule();
$scope = new Google_Service_Calendar_AclRuleScope();
/*
The type of the scope. Possible values are:
"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->setType("user");
$scope->setValue($user_email);
$rule->setScope($scope);
/*
The role assigned to the scope. Possible values are:
"none" - Provides no access.
"freeBusyReader" - Provides read access to free/busy information.
"reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
"writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
"owner" - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
*/
$rule->setRole($role);
$createdRule = $service->acl->insert($calendar_id, $rule);
}
希望这有助于:)
相关问题
- 1. s2s谷歌日历API,共享日历服务
- 2. 谷歌日历API
- 3. API谷歌日历
- 4. 谷歌日历,共享,用户识别
- 5. 共享谷歌日历在组织中
- 6. 谷歌日历全日历
- 7. 谷歌日历的Java API
- 8. 谷歌日历api .net
- 9. 谷歌日历API - JavaScript的
- 10. 谷歌日历API asp.net C#
- 11. 谷歌日历api提醒
- 12. 谷歌日历api delphi
- 13. Java:谷歌日历API
- 14. 谷歌日历API OAUTH
- 15. 谷歌日历API一旦
- 16. 谷歌日历API v3 setRecurrence
- 17. 谷歌日历v3 api
- 18. 请求谷歌日历api
- 19. 谷歌日历Api v3 EventDateTime
- 20. 谷歌日历API时间
- 21. 在谷歌日历API V3
- 22. 谷歌日历API:在HTML
- 23. Perl谷歌日历API
- 24. 谷歌日历
- 25. 谷歌日历
- 26. 谷歌日历
- 27. 谷歌日历
- 28. 在谷歌日历其他日历
- 29. 谷歌日历日视图
- 30. 谷歌日历html