V2 0/child/search all
功能说明
获取文章分类列表/搜索文章
URL
http://[域名]/v2_)/child/search_all
返回格式
支持json,xml.通过format参数来控制
HTTP请求方式
POST.可以post的数据为xml或json.
输入参数说明
参数名称 | 是否必须 | 类型 | 描述 |
---|---|---|---|
page | 否 | int | 当前页 |
page_size | 否 | int | 每页显示条数 |
cate_id |
否 | int |
文章分类id,适用于文章分类列表页,请求时必须填。搜索页请求时传'0'; |
city_id | 否 | int | 城市 1=北京 2=上海,默认1 |
keyword |
否 |
string |
关键字,适用于搜索页为必填,在文章分类列表请求时传‘’。目前规则:按文章标题或关键字进行搜索。 |
请求示例
正式环境 http://api.fumubang.com/v2_0/child/search_all 测试环境 http://api.fumubang.net/v2_0/child/search_all
本地环境 http://dev-api.fumubang.net/v2_0/child/search_all
正确返回示例
{
"list": [
{
"news_id": "2977",//文章id
"banner": "http://img3.fumubang.net/childios/201503/X20150310095226655.jpg",//文章banner
"title": "sam 推荐酒店文章",//标题
"cate_id": "0",//分类id
"linkurl": "",原文章链接
"type": "",//标识哪个公众号抓来的
"city_id": "1",//城市
"view_count": "659",//查看数
"like_count": "0",//喜欢书
"cate_name": "",//分类名称
"tag_list": [ //标签列表3.50版本新增
{
"tag_name": "文章标签1"
},
{
"tag_name": "文章标签30"
},
{
"tag_name": "文章标签21"
}
],
"show_big_pic":1//是否显示大图,0否1是,适用于3.50版本以上
},
{
"news_id": "2971",
"banner": "http://img3.fumubang.net/childios/201412/X20141216173510452.jpg",
"title": "sam文章测试,第几期活动,可爱的宝宝照片,标题有点点长,标题有点点长",
"cate_id": "0",
"linkurl": "",
"type": "",
"city_id": "1",
"view_count": "355",
"like_count": "0",
"cate_name": "",
"tag_list": [
{
"tag_name": "文章标签1"
},
{
"tag_name": "文章标签30"
},
{
"tag_name": "文章标签21"
}
],
"show_big_pic":0
},
{
"news_id": "2957",
"banner": "http://img3.fumubang.net/huodong/banner/X20141118102928930.png",
"title": "sam test",
"cate_id": "0",
"linkurl": "",
"type": "",
"city_id": "1",
"view_count": "45",
"like_count": "0",
"cate_name": "",
"tag_list": [
{
"tag_name": "文章标签1"
},
{
"tag_name": "文章标签30"
},
{
"tag_name": "文章标签21"
}
],
"show_big_pic":0
}
],
"page": {
"num": 3,
"page": 1,
"pagesize": 10
}
}