V2 0/longtour/get product list long
功能说明
获取长线游、周边游列表
URL
http://[域名]/v2_0/longtour/get_product_list_long
返回格式
支持json,xml.通过format参数来控制
HTTP请求方式
POST.可以post的数据为xml或json.
输入参数说明
各个参数请进行URL 编码,编码时请遵守 RFC 1738 (1)公共参数 发送请求时必须传入公共参数,详见公共参数说明。 (2)私有参数
参数名称 | 是否必须 | 类型 | 描述 |
---|---|---|---|
city_id |
必须 | int | 城市id |
type |
必须 |
int |
列表分类:1周边游,2长途旅行 |
will_date |
可选 |
date |
出行日期:格式'YYYY-mm-dd' |
destination_ids |
可选 |
string |
旅行目的地,多个id以英文‘,’隔开 |
orderby |
可选 | int | 排序(0:默认,1:销量最高,2:价格高到低;,3 价格低到高,4:上架时间) |
page |
必须 |
int | 页码 |
pagesize |
可选 |
int | 每一页大小,每页10条 |
version |
必须 |
string |
版本号 |
请求示例
正式环境 http://api.fumubang.com/v2_0/longtour/get_product_list_long 测试环境 http://api.fumubang.net/v2_0/longtour/get_product_list_long
本地环境 http://dev-api.fumubang.net/v2_0/longtour/get_product_list_long
返回参数说明
参数 | 说明 |
---|---|
status |
状态:success |
list |
活动列表 |
order_list |
排序列表 |
destination_list |
目的地列表 |
page |
分页数据 |
aid |
活动id |
title |
活动标题 |
sub_title |
副标题 |
banner |
轮播图 |
sell_num |
销量http://wiki.fumubang.net/index.php?title=V2_0/longtour/get_product_list_long&action=edit&redlink=1 |
min_goods_price |
现价 |
min_market_price |
市场价 |
activity_type |
活动类型:1普通,2专享,3特惠 |
cat_id |
分类id |
order_sell_money |
2周内订单金额 |
is_official |
是否官方活动:1是,0否 |
overseas_list |
目的地:境外 |
ticket_type |
活动类型 |
destination_city_names |
家庭旅行产品的目的地 |
shop_name |
场馆名称 |
cate_name |
分类名称 |
tag_list |
分类列表 |
{
"status": "success",
"data": {
"list": [
{
"aid": "989",
"title": "天津自由行5天4晚",
"sub_title": "副标题啊啊",
"activity_group_type": "0",
"type_name": "pack_free",
"is_fclub": "1",
"activity_type": "0",
"banner": "http://img3.fumubang.net/test/D20160225212655301.jpg",
"sell_num": "21",
"min_goods_price": "3989.00",
"min_market_price": "0",
"cat_id": "57",
"destination_provinces_ids": "2",
"destination_city_ids": "56",
"order_sell_money": "53879.00",
"app_tag_text": "FClub",
"is_official": 0,
"ticket_type": 51
},
{
"aid": "955",
"title": "广州自由行",
"sub_title": "环境优美",
"activity_group_type": "0",
"type_name": "pack_free",
"is_fclub": "1",
"activity_type": "0",
"banner": "http://img3.fumubang.net/test/D20160225103435468.jpg",
"sell_num": "10",
"min_goods_price": "3500.00",
"min_market_price": "0",
"cat_id": "57",
"destination_provinces_ids": "19",
"destination_city_ids": "289",
"order_sell_money": "48500.00",
"app_tag_text": "FClub",
"is_official": 0,
"ticket_type": 51
},
{
"aid": "309",
"title": "正式产品[01-14]",
"sub_title": "正式产品[01-14]2",
"activity_group_type": "0",
"type_name": "pack_free",
"is_fclub": "0",
"activity_type": "0",
"banner": "http://img3.fumubang.net/test/D20160202135421389.jpg",
"sell_num": "75",
"min_goods_price": "450.00",
"min_market_price": "0",
"cat_id": "45",
"destination_provinces_ids": "1",
"destination_city_ids": "41",
"order_sell_money": "44897.02",
"app_tag_text": "",
"is_official": 0,
"ticket_type": 51
},
{
"aid": "773",
"title": "shuwen马尔代夫自由行6天5晚",
"sub_title": "无副标题",
"activity_group_type": "0",
"type_name": "pack_free",
"is_fclub": "1",
"activity_type": "0",
"banner": "http://img3.fumubang.net/test/D20160222155716183.jpg",
"sell_num": "23",
"min_goods_price": "3424.00",
"min_market_price": "0",
"cat_id": "57",
"destination_provinces_ids": "35",
"destination_city_ids": "45257",
"order_sell_money": "28392.00",
"app_tag_text": "FClub",
"is_official": 0,
"ticket_type": 51
},
{
"aid": "2000043",
"title": "ming-海南自由行豪华5日游",
"sub_title": "土豪专属",
"activity_group_type": "0",
"type_name": "pack_free",
"is_fclub": "1",
"activity_type": "0",
"banner": "",
"sell_num": "3",
"min_goods_price": "12400.00",
"min_market_price": "0",
"cat_id": "57",
"destination_provinces_ids": "1",
"destination_city_ids": "41",
"order_sell_money": "26200.00",
"app_tag_text": "FClub",
"is_official": 0,
"ticket_type": 51
},
{
"aid": "779",
"title": "自由行4天3晚",
"sub_title": "副标题太太太",
"activity_group_type": "0",
"type_name": "pack_free",
"is_fclub": "0",
"activity_type": "0",
"banner": "",
"sell_num": "10",
"min_goods_price": "1200.00",
"min_market_price": "0",
"cat_id": "25",
"destination_provinces_ids": "28",
"destination_city_ids": "448",
"order_sell_money": "23773.00",
"app_tag_text": "",
"is_official": 0,
"ticket_type": 51
},
{
"aid": "753",
"title": "sam自由行南京+镇江5天4晚",
"sub_title": "南京again,再加上镇江1日游,测试测试。s.dfjdslfjsd,的空间发了款撒的发再来一行,看看情况如何啊",
"activity_group_type": "0",
"type_name": "pack_free",
"is_fclub": "0",
"activity_type": "0",
"banner": "",
"sell_num": "8",
"min_goods_price": "2650.00",
"min_market_price": "0",
"cat_id": "57",
"destination_provinces_ids": "10",
"destination_city_ids": "162,172",
"order_sell_money": "20646.00",
"app_tag_text": "",
"is_official": 0,
"ticket_type": 51
},
{
"aid": "987",
"title": "sam-泰国自由行7天6晚",
"sub_title": "7天6晚,价格有点高",
"activity_group_type": "0",
"type_name": "pack_free",
"is_fclub": "1",
"activity_type": "0",
"banner": "http://img3.fumubang.net/test/D20160225183453152.jpg",
"sell_num": "1",
"min_goods_price": "10400.00",
"min_market_price": "0",
"cat_id": "57",
"destination_provinces_ids": "35",
"destination_city_ids": "560",
"order_sell_money": "13100.00",
"app_tag_text": "FClub",
"is_official": 0,
"ticket_type": 51
},
{
"aid": "2000169",
"title": "sam-江南3市自由行5天4晚",
"sub_title": "南京again,再加上镇江1日游,测试测试。s.dfjdslfjsd,的空间发了款撒的发再来一行,看看情况如何啊",
"activity_group_type": "0",
"type_name": "pack_free",
"is_fclub": "0",
"activity_type": "0",
"banner": "http://img3.fumubang.net/test/D20160307163452949.jpg",
"sell_num": "6",
"min_goods_price": "5550.00",
"min_market_price": "0",
"cat_id": "57",
"destination_provinces_ids": "3",
"destination_city_ids": "78",
"order_sell_money": "11296.00",
"app_tag_text": "",
"is_official": 0,
"ticket_type": 51
},
{
"aid": "2000085",
"title": "shuwen九寨沟自由行5天4晚",
"sub_title": "副标题",
"activity_group_type": "0",
"type_name": "pack_free",
"is_fclub": "1",
"activity_type": "0",
"banner": "http://img3.fumubang.net/test/D20160303184358768.jpg",
"sell_num": "15",
"min_goods_price": "2087.00",
"min_market_price": "0",
"cat_id": "57",
"destination_provinces_ids": "1,23",
"destination_city_ids": "49,385",
"order_sell_money": "5290.00",
"app_tag_text": "FClub",
"is_official": 0,
"ticket_type": 51
}
],
"order_list": [
{
"name": "默认排序",
"orderby": 0
},
{
"name": "销量最高",
"orderby": 1
},
{
"name": "价格从高到低",
"orderby": 2
},
{
"name": "价格从低到高",
"orderby": 3
},
{
"name": "上架时间",
"orderby": 4
}
],
"destination_list": [
{
"id": "0",
"name": "境内",
"total": "0",
"sub": [
{
"total": "6",
"id": "386",
"name": "自贡"
},
{
"total": "5",
"id": "385",
"name": "成都"
},
{
"id": "9",
"name": "上海",
"total": "7"
},
{
"total": "2",
"id": "224",
"name": "青岛"
},
{
"total": "2",
"id": "223",
"name": "济南"
},
{
"total": "1",
"id": "228",
"name": "烟台"
},
{
"total": "1",
"id": "225",
"name": "淄博"
},
{
"total": "1",
"id": "239",
"name": "菏泽"
},
{
"total": "5",
"id": "325",
"name": "三亚"
},
{
"total": "4",
"id": "162",
"name": "南京"
},
{
"total": "2",
"id": "172",
"name": "镇江"
},
{
"total": "2",
"id": "214",
"name": "萍乡"
},
{
"total": "2",
"id": "222",
"name": "上饶"
},
{
"total": "1",
"id": "448",
"name": "兰州"
},
{
"total": "1",
"id": "451",
"name": "白银"
},
{
"total": "1",
"id": "461",
"name": "甘南"
},
{
"total": "2",
"id": "194",
"name": "黄山"
},
{
"total": "1",
"id": "193",
"name": "安庆"
},
{
"total": "2",
"id": "84",
"name": "太原"
},
{
"total": "2",
"id": "289",
"name": "广州"
},
{
"total": "1",
"id": "407",
"name": "六盘水"
},
{
"total": "1",
"id": "408",
"name": "遵义"
},
{
"id": "22",
"name": "重庆",
"total": "2"
},
{
"total": "1",
"id": "312",
"name": "桂林"
},
{
"total": "1",
"id": "418",
"name": "保山"
},
{
"total": "1",
"id": "134",
"name": "双鸭山"
}
]
},
{
"id": "0",
"name": "境外",
"total": "0",
"sub": [
{
"total": "1",
"id": "493",
"name": "台北"
},
{
"total": "1",
"id": "494",
"name": "高雄"
},
{
"total": "1",
"id": "502",
"name": "桃园县"
},
{
"total": "2",
"id": "561",
"name": "日本"
},
{
"total": "1",
"id": "540",
"name": "法国"
},
{
"total": "1",
"id": "538",
"name": "新西兰"
},
{
"total": "1",
"id": "560",
"name": "泰国"
},
{
"total": "1",
"id": "45257",
"name": "马尔代夫"
}
]
}
],
"page": {
"num": "37",
"page": 1,
"pagesize": 10
}
}
}
错误返回示例
<syntaxhighlight lang="php"> <error_code>100001</error_code> <error_msg>签名失败</error_msg> </syntaxhighlight>