@sewise-dev
2018-07-10T03:05:28.000000Z
字数 1042
阅读 481
香港卫视
一、搜索页面
1.热门搜索标签列表
请求地址:mod=App&do=HotKeywords 传参: 无 返回值:json格式, 热门关键词名 hot_tag_name
成功返回示例
{"success":true,"data":[{"hot_tag_name":"x"},{"hot_tag_name":"x"},{"hot_tag_name":"x"}]}
失败返回示例
{"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
成功时候返回示例
{"success":true,
"data":[
{"news_title":"xxx","img_url":"1.png","news_source":"新华网","release_time":"20分钟前",
"tag_name":"热点","news_id":135},
{"news_title":"xxx","img_url":"2.png","news_source":"新华网","release_time":"20分钟前",
"tag_name":"热点","news_id":88},
{"news_title":"xxx","img_url":"3.png","news_source":"新华网","release_time":"20分钟前",
"tag_name":"热点","news_id":85},
{"news_title":"xxx","img_url":"4.png","news_source":"新华网","release_time":"20分钟前",
"tag_name":"热点","news_id":100},
{"news_title":"xxx","img_url":"5.png","news_source":"新华网","release_time":"20分钟前",
"tag_name":"热点","news_id":111}
]
}
失败时返回示例
{"success":false, "error_info":"没有数据"}