注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > 千牛接口

taobao.alibao.labels.get (获取买家所有恶意标签信息)

待补充

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
buyer_id Number 必须 10000 UIC的买家ID

响应参数

名称 类型 示例值 描述
alibao_result_data Json [{"labelType":"test","labeledCnt":1},{"labelType":"label测试","labeledCnt":1}] resultData
alibao_error_info String userId: null errorInfo
alibao_error_code String ERROR_CODE_ILLEGAL_ARGUMENT errorCode
alibao_success Boolean true success

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibaoLabelsGetRequest req = new AlibaoLabelsGetRequest();
req.setBuyerId(10000L);
AlibaoLabelsGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibao_labels_get_response>
    <alibao_result_data>[{&quot;labelType&quot;:&quot;test&quot;,&quot;labeledCnt&quot;:1},{&quot;labelType&quot;:&quot;label测试&quot;,&quot;labeledCnt&quot;:1}]</alibao_result_data>
    <alibao_error_info>userId: null</alibao_error_info>
    <alibao_error_code>ERROR_CODE_ILLEGAL_ARGUMENT</alibao_error_code>
    <alibao_success>true</alibao_success>
</alibao_labels_get_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

返回
顶部