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