Skip to content

批量查询打卡记录

用于获取用户的打卡记录

标签打卡记录

请求说明

字段
请求地址
https://openapi.wps.cn/v7/attendance/punches/batch_get
HTTP 方法
POST
接口描述
批量获取打卡记录
签名方式
KSO-1
限频策略
权限要求
查询打卡记录信息(应用授权) kso.attendance_punch_record.read

请求头 (Headers)

属性名类型是否必填描述可选值
X-Kso-Id-Type
string类型
* internal - 内部
* external - 外部
internal, external

请求体(Body)

请求体格式: application/json

没有可用的数据

请求体示例

json
{
  "from_time": 0,
  "page_size": 0,
  "page_token": "string",
  "time_type": "punch_time",
  "to_time": 0,
  "user_ids": [
    "string"
  ]
}

响应体(Response)

HTTP状态码: 200
响应体格式: application/json

没有可用的数据

响应体示例

json
{
  "data": {
    "items": [
      {
        "address": {
          "description": "string",
          "latitude": "string",
          "longitude": "string"
        },
        "attendance_type": "normal",
        "ctime": 0,
        "device": {
          "id": "string",
          "name": "string"
        },
        "group_id": "string",
        "id": "string",
        "mtime": 0,
        "photo_url": "string",
        "punch_state": "normal",
        "punch_time": 0,
        "punch_type": "in_punch",
        "remark": "string",
        "user_id": "string",
        "wifi": {
          "addr": "string",
          "ssid": "string"
        },
        "work_date_time": 0
      }
    ],
    "next_page_token": "string"
  },
  "code": 0,
  "msg": "string"
}