获取员工打卡规则
POST
/cgi-bin/checkin/getcheckinoption
服务端API企业内部开发第三方应用开发
第三方应用可获取应用可见范围内指定员工指定日期的打卡规则。
用户在不同日期的规则不一定相同,请按天获取。
原文档地址:
https://open.work.weixin.qq.com/api/doc/90000/90135/90263
https://open.work.weixin.qq.com/api/doc/90001/90143/94204
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://qyapi.weixin.qq.com/cgi-bin/checkin/getcheckinoption?access_token=' \
--header 'Content-Type: application/json' \
--data-raw '{"datetime":1511971200,"useridlist":["james","paul"]}'
响应示例响应示例
{
"errcode": 0,
"errmsg": "string",
"info": [
{
"userid": "string",
"group": {
"need_photo": true,
"checkindate": [
{
"workdays": [
0
],
"flex_on_duty_time": 0,
"limit_aheadtime": 0,
"flex_off_duty_time": 0,
"flex_time": 0,
"checkintime": [
{
"remind_work_sec": 0,
"off_work_sec": 0,
"work_sec": 0,
"remind_off_work_sec": 0
}
],
"noneed_offwork": true
}
],
"schedulelist": [
{
"limit_offtime": 0,
"flex_on_duty_time": 0,
"time_section": [
{
"time_id": 0,
"remind_work_sec": 0,
"off_work_sec": 0,
"rest_begin_time": 0,
"work_sec": 0,
"remind_off_work_sec": 0,
"allow_rest": true,
"rest_end_time": 0
}
],
"max_allow_arrive_early": 0,
"limit_aheadtime": 0,
"flex_off_duty_time": 0,
"late_rule": {
"timerules": [
{
"offwork_after_time": 0,
"onwork_flex_time": 0
}
],
"allow_offwork_after_time": true
},
"schedule_id": 0,
"schedule_name": "string",
"max_allow_arrive_late": 0,
"noneed_offwork": true,
"allow_flex": true
}
],
"groupid": 0,
"loc_infos": [
{
"loc_title": "string",
"lng": 0,
"distance": 0,
"loc_detail": "string",
"lat": 0
}
],
"spe_workdays": [
{
"notes": "string",
"checkintime": [
{
"remind_work_sec": 0,
"off_work_sec": 0,
"work_sec": 0,
"remind_off_work_sec": 0
}
],
"timestamp": 0
}
],
"sync_holidays": true,
"groupname": "string",
"allow_checkin_offworkday": true,
"grouptype": 0,
"spe_offdays": [
{
"notes": "string",
"checkintime": [
{}
],
"timestamp": 0
}
],
"allow_apply_offworkday": true,
"wifimac_infos": [
{
"wifiname": "string",
"wifimac": "string"
}
],
"note_can_use_local_pic": true
}
}
]
}
请求参数
Query 参数
access_token
必需
示例值:
{{accesstoken}}
Body 参数application/json
返回响应
修改于 2022-01-14 04:25:48