dingtalk.oapi.smartdevice.hasface (查询企业员工是否已录入人脸)

开通人脸识别的企业中,会存在部分用户录入照片,此接口用于批量查看员工是否已录入照片

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
userid_list String [] 必须 ["111","222"]
  • 最大列表长度:100
  • 查询用userid列表

    响应参数

    名称 类型 示例值 描述
    errcode Number 0 dingOpenErrcode
    errmsg String ok errorMsg
    userid_list String [] ["111"] 已录入用户列表

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/smartdevice/hasface");
    OapiSmartdeviceHasfaceRequest req = new OapiSmartdeviceHasfaceRequest();
    req.setUseridList(""111","222"");
    OapiSmartdeviceHasfaceResponse rsp = client.execute(req, access_token);
    System.out.println(rsp.getBody());

    响应示例

    • JSON示例
    {
        "errcode":0,
        "errmsg":"ok",
        "userid_list":{
            "string":[
                "[\"111\"]"
            ]
        }
    }

    异常示例

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

    错误码解释

    错误码 错误描述 解决方案

    API工具

    如何获得此API

    FAQ

    返回
    顶部