[关闭]
@sewise-dev 2018-07-10T03:05:28.000000Z 字数 1042 阅读 481

香港卫视APP接口剖析 - 搜索页面

香港卫视


一、搜索页面

1.热门搜索标签列表

请求地址:mod=App&do=HotKeywords
传参:  无
返回值:json格式,
        热门关键词名    hot_tag_name

成功返回示例

  1. {"success":true,"data":[{"hot_tag_name":"x"},{"hot_tag_name":"x"},{"hot_tag_name":"x"}]}

失败返回示例

  1. {"success":false,"error_info":"没有数据"}

2.搜索结果列表

请求地址:mod=App&do=Search
传参:  关键词      key_words
返回值:json格式,
        新闻标题    news_title
        图片地址    img_url
        来源        news_source
        发布时间    release_time (要按照文档要求的时间格式)
        标签名称    tag_name
        新闻id      news_id(点击进入详情页时传参)
        分类id      classify_id

成功时候返回示例

  1. {"success":true,
  2. "data":[
  3. {"news_title":"xxx","img_url":"1.png","news_source":"新华网","release_time":"20分钟前",
  4. "tag_name":"热点","news_id":135},
  5. {"news_title":"xxx","img_url":"2.png","news_source":"新华网","release_time":"20分钟前",
  6. "tag_name":"热点","news_id":88},
  7. {"news_title":"xxx","img_url":"3.png","news_source":"新华网","release_time":"20分钟前",
  8. "tag_name":"热点","news_id":85},
  9. {"news_title":"xxx","img_url":"4.png","news_source":"新华网","release_time":"20分钟前",
  10. "tag_name":"热点","news_id":100},
  11. {"news_title":"xxx","img_url":"5.png","news_source":"新华网","release_time":"20分钟前",
  12. "tag_name":"热点","news_id":111}
  13. ]
  14. }

失败时返回示例

  1. {"success":false, "error_info":"没有数据"}
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注