public class CalendarEvent extends Object
| 构造器和说明 |
|---|
CalendarEvent(Config config) |
public CalendarEvent(Config config)
public CreateCalendarEventResp create(CreateCalendarEventReq 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)。;- 当前身份必须对日历有 writer 或 owner 权限,并且日历的类型只能为 primary 或 shared。你可以调用[查询日历信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/get)接口,获取日历类型以及当前身份对该日历的访问权限。;- 该接口仅用于创建日程,如需为日程添加参与人或预约会议室,则需调用[添加日程参与人](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event-attendee/create)接口。 ;
Exceptionpublic CreateCalendarEventResp create(CreateCalendarEventReq 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)。;- 当前身份必须对日历有 writer 或 owner 权限,并且日历的类型只能为 primary 或 shared。你可以调用[查询日历信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/get)接口,获取日历类型以及当前身份对该日历的访问权限。;- 该接口仅用于创建日程,如需为日程添加参与人或预约会议室,则需调用[添加日程参与人](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event-attendee/create)接口。 ;
Exceptionpublic DeleteCalendarEventResp delete(DeleteCalendarEventReq 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)。;- 当前身份必须对日历有 writer 或 owner 权限,并且日历的类型只能为 primary 或 shared。你可以调用[查询日历信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/get)接口,获取日历类型以及当前身份对该日历的访问权限。;- 当前身份必须是日程的组织者。 ;
Exceptionpublic DeleteCalendarEventResp delete(DeleteCalendarEventReq 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)。;- 当前身份必须对日历有 writer 或 owner 权限,并且日历的类型只能为 primary 或 shared。你可以调用[查询日历信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/get)接口,获取日历类型以及当前身份对该日历的访问权限。;- 当前身份必须是日程的组织者。 ;
Exceptionpublic GetCalendarEventResp get(GetCalendarEventReq req, RequestOptions reqOptions) throws Exception
- 当前身份由 Header Authorization 的 Token 类型决定。tenant_access_token 指应用身份,user_access_token 指用户身份。;- 当前身份必须对日历有 reader、writer 或 owner 权限。你可以调用[查询日历信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/get)接口,获取当前身份对该日历的访问权限。;- 你可以通过 event_id 的时间戳后缀来获取例外日程的时间信息。例如,event_id 为 `xxxxxxxxx_1602504000` 的例外日程时间戳为 160250400。关于例外日程说明可参见[日程资源介绍](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/introduction)。 ;
Exceptionpublic GetCalendarEventResp get(GetCalendarEventReq req) throws Exception
- 当前身份由 Header Authorization 的 Token 类型决定。tenant_access_token 指应用身份,user_access_token 指用户身份。;- 当前身份必须对日历有 reader、writer 或 owner 权限。你可以调用[查询日历信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/get)接口,获取当前身份对该日历的访问权限。;- 你可以通过 event_id 的时间戳后缀来获取例外日程的时间信息。例如,event_id 为 `xxxxxxxxx_1602504000` 的例外日程时间戳为 160250400。关于例外日程说明可参见[日程资源介绍](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar-event/introduction)。 ;
Exceptionpublic InstanceViewCalendarEventResp instanceView(InstanceViewCalendarEventReq req, RequestOptions reqOptions) throws Exception
Exceptionpublic InstanceViewCalendarEventResp instanceView(InstanceViewCalendarEventReq req) throws Exception
Exceptionpublic InstancesCalendarEventResp instances(InstancesCalendarEventReq req, RequestOptions reqOptions) throws Exception
当前身份由 Header Authorization 的 Token 类型决定。tenant_access_token 指应用身份,user_access_token 指用户身份。 ;
Exceptionpublic InstancesCalendarEventResp instances(InstancesCalendarEventReq req) throws Exception
当前身份由 Header Authorization 的 Token 类型决定。tenant_access_token 指应用身份,user_access_token 指用户身份。 ;
Exceptionpublic ListCalendarEventResp list(ListCalendarEventReq req, RequestOptions reqOptions) throws Exception
Exceptionpublic ListCalendarEventResp list(ListCalendarEventReq req) throws Exception
Exceptionpublic PatchCalendarEventResp patch(PatchCalendarEventReq 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)。;- 当前身份必须对日历有 writer 或 owner 权限,并且日历的类型只能为 primary 或 shared。你可以调用[查询日历信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/get)接口,获取日历类型以及当前身份对该日历的访问权限。;;## 使用限制;;- 当前身份为日程组织者时,可修改该接口内的所有可编辑字段。;- 当前身份为日程参与者时,仅可编辑部分字段(包括 visibility、free_busy_status、color、reminders)。 ;
Exceptionpublic PatchCalendarEventResp patch(PatchCalendarEventReq 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)。;- 当前身份必须对日历有 writer 或 owner 权限,并且日历的类型只能为 primary 或 shared。你可以调用[查询日历信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/get)接口,获取日历类型以及当前身份对该日历的访问权限。;;## 使用限制;;- 当前身份为日程组织者时,可修改该接口内的所有可编辑字段。;- 当前身份为日程参与者时,仅可编辑部分字段(包括 visibility、free_busy_status、color、reminders)。 ;
Exceptionpublic ReplyCalendarEventResp reply(ReplyCalendarEventReq req, RequestOptions reqOptions) throws Exception
当前身份由 Header Authorization 的 Token 类型决定。tenant_access_token 指应用身份,user_access_token 指用户身份。 ;
Exceptionpublic ReplyCalendarEventResp reply(ReplyCalendarEventReq req) throws Exception
当前身份由 Header Authorization 的 Token 类型决定。tenant_access_token 指应用身份,user_access_token 指用户身份。 ;
Exceptionpublic SearchCalendarEventResp search(SearchCalendarEventReq req, RequestOptions reqOptions) throws Exception
## 注意事项;;适用于主日历和共享日历,且当前身份必须对日历有 reader、writer 或 owner 权限。你可以调用[查询日历信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/get)接口,获取当前身份对日历的访问权限。 ;
Exceptionpublic SearchCalendarEventResp search(SearchCalendarEventReq req) throws Exception
## 注意事项;;适用于主日历和共享日历,且当前身份必须对日历有 reader、writer 或 owner 权限。你可以调用[查询日历信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/get)接口,获取当前身份对日历的访问权限。 ;
Exceptionpublic SubscriptionCalendarEventResp subscription(SubscriptionCalendarEventReq req, RequestOptions reqOptions) throws Exception
当前身份必须对日历有 reader、writer 或 owner 权限。你可以调用[查询日历信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/get)接口,获取当前身份对该日历的访问权限。 ;
Exceptionpublic SubscriptionCalendarEventResp subscription(SubscriptionCalendarEventReq req) throws Exception
当前身份必须对日历有 reader、writer 或 owner 权限。你可以调用[查询日历信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/get)接口,获取当前身份对该日历的访问权限。 ;
Exceptionpublic UnsubscriptionCalendarEventResp unsubscription(UnsubscriptionCalendarEventReq req, RequestOptions reqOptions) throws Exception
当前身份必须对日历有 reader、writer 或 owner 权限。你可以调用[查询日历信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/get)接口,获取当前身份对该日历的访问权限。 ;
Exceptionpublic UnsubscriptionCalendarEventResp unsubscription(UnsubscriptionCalendarEventReq req) throws Exception
当前身份必须对日历有 reader、writer 或 owner 权限。你可以调用[查询日历信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/calendar-v4/calendar/get)接口,获取当前身份对该日历的访问权限。 ;
ExceptionCopyright © 2026. All rights reserved.