public interface WxCpOAService
| 限定符和类型 | 方法和说明 |
|---|---|
WxCpApprovalDataResult |
getApprovalData(Date starttime,
Date endtime,
Long nextSpnum)
获取审批数据
通过本接口来获取公司一段时间内的审批记录。
|
List<WxCpCheckinData> |
getCheckinData(Integer openCheckinDataType,
Date starttime,
Date endtime,
List<String> userIdList)
获取打卡数据
API doc : https://work.weixin.qq.com/api/doc#90000/90135/90262
|
List<WxCpCheckinOption> |
getCheckinOption(Date datetime,
List<String> userIdList)
获取打卡规则
API doc : https://work.weixin.qq.com/api/doc#90000/90135/90263
|
List<WxCpDialRecord> |
getDialRecord(Date starttime,
Date endtime,
Integer offset,
Integer limit) |
List<WxCpCheckinData> getCheckinData(Integer openCheckinDataType, Date starttime, Date endtime, List<String> userIdList) throws WxErrorException
获取打卡数据
API doc : https://work.weixin.qq.com/api/doc#90000/90135/90262
openCheckinDataType - 打卡类型。1:上下班打卡;2:外出打卡;3:全部打卡starttime - 获取打卡记录的开始时间endtime - 获取打卡记录的结束时间userIdList - 需要获取打卡记录的用户列表WxErrorExceptionList<WxCpCheckinOption> getCheckinOption(Date datetime, List<String> userIdList) throws WxErrorException
获取打卡规则
API doc : https://work.weixin.qq.com/api/doc#90000/90135/90263
datetime - 需要获取规则的当天日期userIdList - 需要获取打卡规则的用户列表WxErrorExceptionWxCpApprovalDataResult getApprovalData(Date starttime, Date endtime, Long nextSpnum) throws WxErrorException
获取审批数据
通过本接口来获取公司一段时间内的审批记录。一次拉取调用最多拉取10000个审批记录,可以通过多次拉取的方式来满足需求,但调用频率不可超过600次/分。
API doc : https://work.weixin.qq.com/api/doc#90000/90135/91530
starttime - 获取审批记录的开始时间endtime - 获取审批记录的结束时间nextSpnum - 第一个拉取的审批单号,不填从该时间段的第一个审批单拉取WxErrorExceptionList<WxCpDialRecord> getDialRecord(Date starttime, Date endtime, Integer offset, Integer limit) throws WxErrorException
WxErrorExceptionCopyright © 2019. All rights reserved.