获取打卡方案列表

接口说明:获取打卡方案列表
请求方式: POST(HTTPS)
请求地址:https://api.xinrenxinshi.com/v5/attendance/clockplans

请求Header:

key value
access_token 获取的access_token的实际值

Query参数:

key value
sign 签名值

Body参数:

参数 参数类型 必传(Y/N) 说明
timestamp Long Y 请求时间戳(精确到毫秒)

返回结果:

参数 类型 必传(Y/N) 说明
errcode Integer Y 0成功,其他失败
errmsg String Y 结果描述
data List<AttendanceSimplePlanInfo> Y 打卡方案列表

AttendanceSimplePlanInfo

参数 类型 必传(Y/N) 说明
clockPlanId Integer Y 方案id
clockPlanName String Y 方案名称

请求示例(HTTPS):

https://api.xinrenxinshi.com/v5/attendance/clockplans?sign=26dAzTk%2BzeMz%2Bx45d8SRniM1PTk%3D

请求Body示例:

{
  "timestamp": 1606183503814
}

SDK请求示例(java):

AttendanceClockPlanListRequest request = new AttendanceClockPlanListRequest(access_token());
OpenapiResponse<List<AttendanceSimplePlanInfo>> clockPlanList = XrxsAttendanceService.getAttendanceClockPlanList(request);

响应实例:

{
  "errcode":0,
  "errmsg":"成功",
  "data":[
    {
      "clockPlanId":267956,
      "clockPlanName":"默认方案"
    }
  ]
}
2024 © 企家有道网络技术(北京)有限公司版权所有@京ICP备15035315号 all right reserved,powered by Gitbookupdate by: 2024-01-15 15:26:15

results matching ""

    No results matching ""