public class CalendarAcl extends Object
| 构造器和说明 |
|---|
CalendarAcl(Config config) |
public CalendarAcl(Config config)
public CreateCalendarAclResp create(CreateCalendarAclReq req, RequestOptions reqOptions) throws Exception
- 当前身份由 Header Authorization 的 Token 类型决定。tenant_access_token 指应用身份,user_access_token 指用户身份。;- 如果使用应用身份调用该接口,则需要确保应用开启了[机器人能力](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-enable-bot-ability)。;- 当前身份需要有日历的 owner 权限,并且日历的类型只能为 primary 或 shared。你可以调用[查询日历信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/get)接口,获取日历类型以及当前身份对该日历的访问权限。 ;
Exceptionpublic CreateCalendarAclResp create(CreateCalendarAclReq req) throws Exception
- 当前身份由 Header Authorization 的 Token 类型决定。tenant_access_token 指应用身份,user_access_token 指用户身份。;- 如果使用应用身份调用该接口,则需要确保应用开启了[机器人能力](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-enable-bot-ability)。;- 当前身份需要有日历的 owner 权限,并且日历的类型只能为 primary 或 shared。你可以调用[查询日历信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/get)接口,获取日历类型以及当前身份对该日历的访问权限。 ;
Exceptionpublic DeleteCalendarAclResp delete(DeleteCalendarAclReq req, RequestOptions reqOptions) throws Exception
- 当前身份由 Header Authorization 的 Token 类型决定。tenant_access_token 指应用身份,user_access_token 指用户身份。;- 如果使用应用身份调用该接口,则需要确保应用开启了[机器人能力](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-enable-bot-ability)。;- 当前身份需要有日历的 owner 权限,并且日历的类型只能为 primary 或 shared。你可以调用[查询日历信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/get)接口,获取日历类型以及当前身份对该日历的访问权限。 ;
Exceptionpublic DeleteCalendarAclResp delete(DeleteCalendarAclReq req) throws Exception
- 当前身份由 Header Authorization 的 Token 类型决定。tenant_access_token 指应用身份,user_access_token 指用户身份。;- 如果使用应用身份调用该接口,则需要确保应用开启了[机器人能力](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-enable-bot-ability)。;- 当前身份需要有日历的 owner 权限,并且日历的类型只能为 primary 或 shared。你可以调用[查询日历信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/get)接口,获取日历类型以及当前身份对该日历的访问权限。 ;
Exceptionpublic ListCalendarAclResp list(ListCalendarAclReq req, RequestOptions reqOptions) throws Exception
- 当前身份由 Header Authorization 的 Token 类型决定。tenant_access_token 指应用身份,user_access_token 指用户身份。;- 如果使用应用身份调用该接口,则需要确保应用开启了[机器人能力](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-enable-bot-ability)。;- 当前身份需要有日历的 owner 权限,并且日历的类型只能为 primary 或 shared。你可以调用[查询日历信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/get)接口,获取日历类型以及当前身份对该日历的访问权限。 ;
Exceptionpublic ListCalendarAclResp list(ListCalendarAclReq req) throws Exception
- 当前身份由 Header Authorization 的 Token 类型决定。tenant_access_token 指应用身份,user_access_token 指用户身份。;- 如果使用应用身份调用该接口,则需要确保应用开启了[机器人能力](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-enable-bot-ability)。;- 当前身份需要有日历的 owner 权限,并且日历的类型只能为 primary 或 shared。你可以调用[查询日历信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/get)接口,获取日历类型以及当前身份对该日历的访问权限。 ;
Exceptionpublic SubscriptionCalendarAclResp subscription(SubscriptionCalendarAclReq req, RequestOptions reqOptions) throws Exception
当前用户身份必须对日历有访问权限。 ;
Exceptionpublic SubscriptionCalendarAclResp subscription(SubscriptionCalendarAclReq req) throws Exception
当前用户身份必须对日历有访问权限。 ;
Exceptionpublic UnsubscriptionCalendarAclResp unsubscription(UnsubscriptionCalendarAclReq req, RequestOptions reqOptions) throws Exception
用户必须对日历有访问权限。 ;
Exceptionpublic UnsubscriptionCalendarAclResp unsubscription(UnsubscriptionCalendarAclReq req) throws Exception
用户必须对日历有访问权限。 ;
ExceptionCopyright © 2026. All rights reserved.