dingtalk.corp.ext.listlabelgroups (标签列表)

拉取标签列表

公共参数

请求参数

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

    响应参数

    名称 类型 示例值 描述
    result Json [{\"color\":-15220075,\"name\":\"类型\",\"labels\":[{\"id\":1026002,\"name\":\"客户\"},{\"id\":1026003,\"name\":\"渠道商\"},{\"id\":1026004,\"name\":\"供应商\"},{\"id\":1026005,\"name\":\"合作伙伴\"},{\"id\":1026006,\"name\":\"其他类型\"}]},{\"color\":-11687445,\"name\":\"级别\",\"labels\":[{\"id\":1026008,\"name\":\"重要\"},{\"id\":1026009,\"name\":\"普通\"},{\"id\":1026010,\"name\":\"一般\"}]}] result

    请求示例

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

    响应示例

    • XML示例
    • JSON示例
    <dingtalk_corp_ext_listlabelgroups_response>
        <result>[{\&quot;color\&quot;:-15220075,\&quot;name\&quot;:\&quot;类型\&quot;,\&quot;labels\&quot;:[{\&quot;id\&quot;:1026002,\&quot;name\&quot;:\&quot;客户\&quot;},{\&quot;id\&quot;:1026003,\&quot;name\&quot;:\&quot;渠道商\&quot;},{\&quot;id\&quot;:1026004,\&quot;name\&quot;:\&quot;供应商\&quot;},{\&quot;id\&quot;:1026005,\&quot;name\&quot;:\&quot;合作伙伴\&quot;},{\&quot;id\&quot;:1026006,\&quot;name\&quot;:\&quot;其他类型\&quot;}]},{\&quot;color\&quot;:-11687445,\&quot;name\&quot;:\&quot;级别\&quot;,\&quot;labels\&quot;:[{\&quot;id\&quot;:1026008,\&quot;name\&quot;:\&quot;重要\&quot;},{\&quot;id\&quot;:1026009,\&quot;name\&quot;:\&quot;普通\&quot;},{\&quot;id\&quot;:1026010,\&quot;name\&quot;:\&quot;一般\&quot;}]}]</result>
    </dingtalk_corp_ext_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

    返回
    顶部