public interface CheckinApi
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.rxjava3.core.Single<WeComResponse> |
addCheckinOption(CheckinOptionRequest request)
创建打卡规则
|
io.reactivex.rxjava3.core.Single<WeComResponse> |
addCheckinUserface(CheckinUserfaceRequest request)
录入打卡人员人脸信息
|
io.reactivex.rxjava3.core.Single<DeviceCheckinDataResponse> |
addCheckinUserface(DeviceCheckinQueryRequest request)
获取设备打卡数据
|
io.reactivex.rxjava3.core.Single<CheckinDataResponse> |
getCheckinData(CheckinDataRequest request)
获取打卡记录数据
获取记录时间跨度不超过30天
用户列表不超过100个。若用户超过100个,请分批获取
有打卡记录即可获取打卡数据,与当前"打卡应用"是否开启无关
标准打卡时间只对于固定排班和自定义排班两种类型有效
接口调用频率限制为600次/分钟
|
io.reactivex.rxjava3.core.Single<CheckinStatisticsResponse<CheckinDayData>> |
getCheckinDayData(CheckinQueryRequest request)
获取打卡日报数据
|
io.reactivex.rxjava3.core.Single<CheckinStatisticsResponse<CheckinMonthData>> |
getCheckinMonthData(CheckinQueryRequest request)
获取打卡月报数据
|
io.reactivex.rxjava3.core.Single<UserCheckinOptionResponse> |
getCheckinOption(UserCheckinOptionRequest request)
获取员工打卡规则
用户列表不超过100个,若用户超过100个,请分批获取。
用户在不同日期的规则不一定相同,请按天获取。
|
io.reactivex.rxjava3.core.Single<ScheduleListResponse> |
getCheckinScheduList(CheckinQueryRequest request)
获取打卡人员排班信息
|
io.reactivex.rxjava3.core.Single<CheckinOptionResponse> |
getCorpCheckinOption()
获取企业所有打卡规则
|
io.reactivex.rxjava3.core.Single<WeComResponse> |
punchCorrection(PunchCorrectionRequest request)
为打卡人员补卡
|
io.reactivex.rxjava3.core.Single<WeComResponse> |
setCheckinScheduList(UserScheduleRequest request)
为打卡人员排班
|
io.reactivex.rxjava3.core.Single<WeComResponse> |
updateCheckinOption(CheckinOptionRequest request)
修改打卡规则
|
@POST(value="checkin/getcorpcheckinoption") io.reactivex.rxjava3.core.Single<CheckinOptionResponse> getCorpCheckinOption()
@POST(value="checkin/getcheckinoption") io.reactivex.rxjava3.core.Single<UserCheckinOptionResponse> getCheckinOption(@Body UserCheckinOptionRequest request)
request - the request@POST(value="checkin/add_checkin_option") io.reactivex.rxjava3.core.Single<WeComResponse> addCheckinOption(@Body CheckinOptionRequest request)
企业可通过打卡应用或授权的代开发应用,为企业添加打卡规则。
request - the request@POST(value="checkin/update_checkin_option") io.reactivex.rxjava3.core.Single<WeComResponse> updateCheckinOption(@Body CheckinOptionRequest request)
企业可通过打卡应用或授权的代开发应用,修改该应用为企业创建的打卡规则。
request - the request@POST(value="checkin/getcheckindata") io.reactivex.rxjava3.core.Single<CheckinDataResponse> getCheckinData(@Body CheckinDataRequest request)
request - the request@POST(value="checkin/getcheckin_daydata") io.reactivex.rxjava3.core.Single<CheckinStatisticsResponse<CheckinDayData>> getCheckinDayData(@Body CheckinQueryRequest request)
企业可通过打卡应用Secret调用本接口,获取指定员工指定时间段内的打卡日报统计数据。 第三方应用可获取应用可见范围内指定员工指定日期内的打卡日报统计数据。
request - the request@POST(value="checkin/getcheckin_monthdata") io.reactivex.rxjava3.core.Single<CheckinStatisticsResponse<CheckinMonthData>> getCheckinMonthData(@Body CheckinQueryRequest request)
request - the request@POST(value="checkin/getcheckinschedulist") io.reactivex.rxjava3.core.Single<ScheduleListResponse> getCheckinScheduList(@Body CheckinQueryRequest request)
仅支持为打卡规则为“按班次上下班”
企业可通过打卡应用Secret调用本接口,获取打卡规则为“按班次上下班”规则的指定员工指定时间段内的排班信息。 第三方应用获取应用可见范围内、打卡规则为“按班次上下班”规则的指定员工指定时间段内的排班信息。
request - the request@POST(value="checkin/setcheckinschedulist") io.reactivex.rxjava3.core.Single<WeComResponse> setCheckinScheduList(@Body UserScheduleRequest request)
企业可通过打卡应用Secret调用本接口,为打卡规则为“按班次上下班”规则的指定员工排班。 第三方应用可通过本接口为应用可见范围内、打卡规则为“按班次上下班”规则的指定员工排班。
request - the request@POST(value="checkin/punch_correction") io.reactivex.rxjava3.core.Single<WeComResponse> punchCorrection(@Body PunchCorrectionRequest request)
暂不支持第三方调用
request - the request@POST(value="checkin/addcheckinuserface") io.reactivex.rxjava3.core.Single<WeComResponse> addCheckinUserface(@Body CheckinUserfaceRequest request)
企业可通过打卡应用Secret调用本接口,为企业打卡人员录入人脸信息,人脸信息仅用于人脸打卡。
注意:对于已有人脸的用户,使用此接口将使用传入的人脸覆盖原有人脸,请谨慎操作。
request - the request@POST(value="checkin/addcheckinuserface") io.reactivex.rxjava3.core.Single<DeviceCheckinDataResponse> addCheckinUserface(@Body DeviceCheckinQueryRequest request)
可通过此接口,获取考勤设备上产生的所有原始打卡记录,包括未被打卡应用记录的不符合打卡规则的记录。 第三方应用可获取应用可见范围内员工在考勤设备上产生的所有原始打卡记录,包括未被打卡应用记录的不符合打卡规则的记录。
request - the requestCopyright © 2024. All rights reserved.