dingtalk.corp.extcontact.list (外部联系人列表)

获取企业外部联系人列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
size Number 可选 20
  • 默认值:20
  • 最大值:100
  • 分页大小, 最大100
    offset Number 可选 0
  • 默认值:0
  • 偏移位置

    响应参数

    名称 类型 示例值 描述
    result DingOpenResult result
    • results
    • OpenExtContact []
    • result
    • └ title
    • String
    • 开发工程师
    • 职位
    • └ share_dept_ids
    • Number []
    • 1,2,3
    • 共享部门ID列表
    • └ label_ids
    • Number []
    • 1,2,3
    • 标签
    • └ remark
    • String
    • 备注内容
    • 备注
    • └ address
    • String
    • 地址内容
    • 地址
    • └ name
    • String
    • 张三
    • 姓名
    • └ follower_user_id
    • String
    • 6767531692
    • 负责人UserID
    • └ state_code
    • String
    • 86
    • 国家码
    • └ company_name
    • String
    • 钉钉
    • 公司名
    • └ share_user_ids
    • String []
    • 042059613752
    • 共享员工UserID列表
    • └ mobile
    • String
    • 13088888888
    • 手机号
    • └ userid
    • String
    • 0123456789
    • 外部联系人UserID
    • └ ding_open_errcode
    • Number
    • 0
    • dingOpenErrcode
    • └ error_msg
    • String
    • 成功
    • errorMsg
    • └ success
    • Boolean
    • true
    • success

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    DingTalkClient client = new DefaultDingTalkClient("https://eco.taobao.com/router/rest");
    CorpExtcontactListRequest req = new CorpExtcontactListRequest();
    req.setSize(20L);
    req.setOffset(0L);
    CorpExtcontactListResponse rsp = client.execute(req, access_token);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <dingtalk_corp_extcontact_list_response>
        <result>
            <results>
                <open_ext_contact>
                    <title>开发工程师</title>
                    <share_dept_ids>
                        <number>1</number>
                        <number>2</number>
                        <number>3</number>
                    </share_dept_ids>
                    <label_ids>
                        <number>1</number>
                        <number>2</number>
                        <number>3</number>
                    </label_ids>
                    <remark>备注内容</remark>
                    <address>地址内容</address>
                    <name>张三</name>
                    <follower_user_id>6767531692</follower_user_id>
                    <state_code>86</state_code>
                    <company_name>钉钉</company_name>
                    <share_user_ids>
                        <string>042059613752</string>
                    </share_user_ids>
                    <mobile>13088888888</mobile>
                    <userid>0123456789</userid>
                </open_ext_contact>
            </results>
            <ding_open_errcode>0</ding_open_errcode>
            <error_msg>成功</error_msg>
            <success>true</success>
        </result>
    </dingtalk_corp_extcontact_list_response>

    异常示例

    • XML示例
    • JSON示例
    <error_response>
        <code>50</code>
        <msg>Remote service error</msg>
        <sub_code>isv.invalid-parameter</sub_code>
        <sub_msg>非法参数</sub_msg>
    </error_response>

    错误码解释

    错误码 错误描述 解决方案

    API工具

    如何获得此API

    FAQ

    返回
    顶部