dingtalk.corp.extcontact.listlabelgroups (外部联系人标签列表)

获取企业外部联系人标签列表

公共参数

请求参数

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

    响应参数

    名称 类型 示例值 描述
    result DingOpenResult result
    • results
    • OpenLabelGroup []
    • results
    • └ name
    • String
    • 类型
    • 标签组名字
    • └ color
    • Number
    • -15220075
    • 标签组颜色
    • labels
    • OpenLabel []
    • labels
    • └ name
    • String
    • 客户
    • 标签名字
    • └ id
    • Number
    • 1026002
    • 标签id
    • └ 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");
    CorpExtcontactListlabelgroupsRequest req = new CorpExtcontactListlabelgroupsRequest();
    req.setSize(20L);
    req.setOffset(0L);
    CorpExtcontactListlabelgroupsResponse rsp = client.execute(req, access_token);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <dingtalk_corp_extcontact_listlabelgroups_response>
        <result>
            <results>
                <open_label_group>
                    <name>类型</name>
                    <color>-15220075</color>
                    <labels>
                        <open_label>
                            <name>客户</name>
                            <id>1026002</id>
                        </open_label>
                    </labels>
                </open_label_group>
            </results>
            <ding_open_errcode>0</ding_open_errcode>
            <error_msg>成功</error_msg>
            <success>true</success>
        </result>
    </dingtalk_corp_extcontact_listlabelgroups_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

    返回
    顶部