taobao.guangguang.content.item.source.search (获取用户允许的商品来源)

内容话题分组列表的查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
relation_id String 可选 1ea3852a73684b0784ac13d8d5eaf71a 机构替用户发布内容时的映射id

响应参数

名称 类型 示例值 描述
result Result 134523^4351232 接口返回model
  • └ success
  • Boolean
  • false
  • 是否成功
  • └ error_code
  • String
  • "isv.invalid-parameter"
  • 错误码
  • model
  • ResourceUploadResponseDTO []
  • 134523^4351232
  • model
  • └ source_code
  • String
  • order
  • 来源编码,查询时作为入参
  • └ source_name
  • String
  • 已购商品
  • 来源名称
  • └ tips
  • String
  • 购买过的商品
  • 说明
  • └ error_msg
  • String
  • "参数错误"
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
GuangguangContentItemSourceSearchRequest req = new GuangguangContentItemSourceSearchRequest();
req.setRelationId("1ea3852a73684b0784ac13d8d5eaf71a");
GuangguangContentItemSourceSearchResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<guangguang_content_item_source_search_response>
    <result>
        <success>false</success>
        <error_code>&quot;isv.invalid-parameter&quot;</error_code>
        <model>
            <resource_upload_response_d_t_o>
                <source_code>order</source_code>
                <source_name>已购商品</source_name>
                <tips>购买过的商品</tips>
            </resource_upload_response_d_t_o>
        </model>
        <error_msg>&quot;参数错误&quot;</error_msg>
    </result>
</guangguang_content_item_source_search_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

返回
顶部