public interface WxCpOaScheduleService
| 限定符和类型 | 方法和说明 | 
|---|---|
| String | add(WxCpOaSchedule schedule,
   Integer agentId)创建日程
 
 该接口用于在日历中创建一个日程。 | 
| void | delete(String scheduleId)取消日程
 该接口用于取消指定的日程。 | 
| List<WxCpOaSchedule> | getDetails(List<String> scheduleIds)获取日程详情
 
 该接口用于获取指定的日程详情。 | 
| List<WxCpOaSchedule> | listByCalendar(String calId,
              Integer offset,
              Integer limit)获取日历下的日程列表
 该接口用于获取指定的日历下的日程列表。 | 
| void | update(WxCpOaSchedule schedule)更新日程
 
 该接口用于在日历中更新指定的日程。 | 
String add(WxCpOaSchedule schedule, Integer agentId) throws WxErrorException
该接口用于在日历中创建一个日程。
请求方式: POST(HTTPS) 请求地址: https://qyapi.weixin.qq.com/cgi-bin/oa/schedule/add?access_token=ACCESS_TOKEN
schedule - the scheduleagentId - 授权方安装的应用agentid。仅旧的第三方多应用套件需要填此参数WxErrorException - the wx error exceptionvoid update(WxCpOaSchedule schedule) throws WxErrorException
该接口用于在日历中更新指定的日程。
注意,更新操作是覆盖式,而不是增量式 不可更新组织者和日程所属日历ID
请求方式: POST(HTTPS) 请求地址: https://qyapi.weixin.qq.com/cgi-bin/oa/schedule/update?access_token=ACCESS_TOKEN
schedule - the scheduleWxErrorException - the wx error exceptionList<WxCpOaSchedule> getDetails(List<String> scheduleIds) throws WxErrorException
该接口用于获取指定的日程详情。
请求方式: POST(HTTPS) 请求地址: https://qyapi.weixin.qq.com/cgi-bin/oa/schedule/get?access_token=ACCESS_TOKEN
scheduleIds - the schedule idsWxErrorException - the wx error exceptionvoid delete(String scheduleId) throws WxErrorException
请求方式: POST(HTTPS) 请求地址: https://qyapi.weixin.qq.com/cgi-bin/oa/schedule/del?access_token=ACCESS_TOKEN
scheduleId - 日程idWxErrorException - the wx error exceptionList<WxCpOaSchedule> listByCalendar(String calId, Integer offset, Integer limit) throws WxErrorException
请求方式: POST(HTTPS) 请求地址: https://qyapi.weixin.qq.com/cgi-bin/oa/schedule/get_by_calendar?access_token=ACCESS_TOKEN
calId - 日历IDoffset - 分页,偏移量, 默认为0limit - 分页,预期请求的数据量,默认为500,取值范围 1 ~ 1000WxErrorException - the wx error exceptionCopyright © 2024. All rights reserved.