taobao.guangguang.content.topic.search (按关键字查询话题)

内容话题分组列表的查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
cursor String 可选 10 搜索开始位置
size Number 必须 10 本次搜索数量
keyword String 必须 明星同款 搜索关键词
relation_id String 可选 1ea3852a73684b0784ac13d8d5eaf71a 机构替用户发布内容时的映射id

响应参数

名称 类型 示例值 描述
result Result 134523^4351232 接口返回model
  • └ success
  • Boolean
  • true
  • 调用是否成功
  • model
  • PagedResult
  • 134523^4351232
  • 分页结果
  • datas
  • TopicDto []
  • 134523^4351232
  • 话题列表
  • └ cover
  • String
  • https://img.alicdn.com/imgextra/i2/6000000004535/O1CN01pk61e61jN4r09ffGv_!!6000000004535-0-guangtopic.jpg
  • 封面图
  • └ topic_id
  • Number
  • 322423271470
  • 话题ID,发布内容时用
  • └ browse_count
  • Number
  • 170
  • 浏览量
  • └ user_join_count
  • Number
  • 170
  • 参与量
  • └ title
  • String
  • 我最爱的中古包
  • 话题标题
  • └ content_count
  • Number
  • 349
  • 内容数
  • └ page_index
  • String
  • 2
  • 当前游标位置,继续查询使用
  • └ page_size
  • Number
  • 3
  • 本页内容数
  • └ has_next
  • Boolean
  • true
  • 是否还有
  • └ error_code
  • String
  • 1234
  • 错误码
  • └ error_msg
  • String
  • 错了
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
GuangguangContentTopicSearchRequest req = new GuangguangContentTopicSearchRequest();
req.setCursor("10");
req.setSize(10L);
req.setKeyword("明星同款");
req.setRelationId("1ea3852a73684b0784ac13d8d5eaf71a");
GuangguangContentTopicSearchResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<guangguang_content_topic_search_response>
    <result>
        <success>true</success>
        <model>
            <datas>
                <topic_dto>
                    <cover>https://img.alicdn.com/imgextra/i2/6000000004535/O1CN01pk61e61jN4r09ffGv_!!6000000004535-0-guangtopic.jpg</cover>
                    <topic_id>322423271470</topic_id>
                    <browse_count>170</browse_count>
                    <user_join_count>170</user_join_count>
                    <title>我最爱的中古包</title>
                    <content_count>349</content_count>
                </topic_dto>
            </datas>
            <page_index>2</page_index>
            <page_size>3</page_size>
            <has_next>true</has_next>
        </model>
        <error_code>1234</error_code>
        <error_msg>错了</error_msg>
    </result>
</guangguang_content_topic_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

返回
顶部