dingtalk.oapi.pbp.instance.group.position.list (打卡业务平台获打卡组已绑定位置)

打卡业务平台,获取打卡组绑定的位置 位置包括 硬件设备、GPS、Wifi等位置描述类型

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
punch_group_id String 必须 xxxxxxx 打卡组唯一标识,由创建打卡组接口返回
cursor Number 可选 0
  • 默认值:0
  • 游标,用于分页查询
    size Number 必须 20 分页请求数量
    biz_id String 可选 patrol_xxx 业务唯一标识

    响应参数

    名称 类型 示例值 描述
    result PageResult 分页结果
    • list
    • PositionVo []
    • 位置列表
    • └ position_name
    • String
    • 1-101会议室
    • 位置名称
    • └ position_id
    • String
    • 12312312
    • 位置唯一标识,根据type不同类型不同,如硬件类型代表硬件设备唯一标识
    • └ position_type
    • Number
    • 100
    • 位置类型,如100表示B1
    • └ next_cursor
    • Number
    • 123123412
    • 下次请求需要带的游标
    • └ has_more
    • Boolean
    • false
    • 是否还有数据
    errcode Number xxxx 错误码
    errmsg String type Illegal 错误信息

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/pbp/instance/group/position/list");
    OapiPbpInstanceGroupPositionListRequest req = new OapiPbpInstanceGroupPositionListRequest();
    req.setPunchGroupId("xxxxxxx");
    req.setCursor(0L);
    req.setSize(20L);
    req.setBizId("patrol_xxx");
    OapiPbpInstanceGroupPositionListResponse rsp = client.execute(req, access_token);
    System.out.println(rsp.getBody());

    响应示例

    • JSON示例
    {
        "result":{
            "list":[
                {
                        "position_name":"1-101会议室",
                        "position_id":"12312312",
                        "position_type":100
                }
            ],
            "next_cursor":123123412,
            "has_more":false
        },
        "errcode":xxxx,
        "errmsg":"type Illegal"
    }

    异常示例

    • JSON示例
    {
    	"errcode":88,
    	"errmsg":"ding talk error"
    }

    错误码解释

    错误码 错误描述 解决方案

    API工具

    如何获得此API

    FAQ

    返回
    顶部