V2 0/group tickets/get list bytag
功能说明
获取标签对应的团购列表
URL
http://[域名]/v2_0/group_tickets/get_list_bytag
返回格式
支持json,xml.通过format参数来控制
HTTP请求方式
POST.可以post的数据为xml或json.
输入参数说明
各个参数请进行URL 编码,编码时请遵守 RFC 1738 (1)公共参数 发送请求时必须传入公共参数,详见公共参数说明。 (2)私有参数
参数名称 | 是否必须 | 类型 | 描述 |
---|---|---|---|
city_id |
必须 | int | 城市id |
tag_name |
必须 |
string |
标签名称 |
cate_id |
可选 | int |
产品分类id |
orderby |
可选 | int | 排序(0:默认,1:近2周销量,2:价格高到低;,3 价格低到高,4:上架时间) |
page |
必须 |
int | 页码 |
pagesize | 可选 |
int | 每一页大小,每页10条 |
version |
必须 |
string |
版本号 |
uid |
可选 |
int |
用户id |
请求示例
正式环境 http://api.fumubang.com/v1/group_tickets/get_list_info 测试环境 http://api.fumubang.net/v1/group_tickets/get_list_info 本地环境 http://dev-api.fumubang.net/v1/group_tickets/get_list_info
返回参数说明
参数 | 说明 |
---|---|
status |
状态:success |
list |
活动列表 |
order_list |
排序列表 |
name |
名称 |
orderby |
排序值 |
cate_list |
分类列表 |
cate_id |
分类id |
aid |
活动id |
title | 活动标题 |
sub_title |
副标题 |
banner |
轮播图 |
sell_num |
销量 |
min_goods_price |
现价 |
min_market_price |
市场价 |
activity_type |
活动类型:1普通,2专享,3特惠 |
cat_id |
分类id |
order_sell_money |
2周内订单金额 |
is_official |
是否官方活动:1是,0否 |
app_tag_text |
app标记的文本 |
destination_city_names |
目的地 |
cate_name |
分类名称 |
shop_name |
场馆名称 |
tag_list |
标签列表 |
正确返回示例
{
"status": "success",
"result": {
"order_list": [
{
"name": "默认排序",
"orderby": 0
},
{
"name": "近两周销量",
"orderby": 1
},
{
"name": "价格从高到低",
"orderby": 2
},
{
"name": "价格从低到高",
"orderby": 3
},
{
"name": "上架时间",
"orderby": 4
}
],
"cate_list": [
{
"name": "家庭旅行",
"cate_id": 45
},
{
"name": "演出票务",
"cate_id": 27
},
{
"name": "亲子活动",
"cate_id": 17
},
{
"name": "精品购物",
"cate_id": 20
}
],
"list": [
{
"aid": "100949",
"title": "sam 酒店房型测试",
"sub_title": "新版酒店 编辑需求",
"banner": "http://img3.fumubang.net/huodong/banner/X20150521101807844.jpg",
"sell_num": "129",
"min_goods_price": "68.00",
"min_market_price": "78",
"activity_type": "1",
"ticket_type": "4",
"cat_id": "25",
"order_sell_money": "3318.00",
"app_tag_text": "官方活动",
"is_official": 1
},
{
"aid": "102489",
"title": "lytest_上线申请跳转—景点——原价=现价",
"sub_title": "跳转",
"banner": "http://img3.fumubang.net/huodong/banner/X20151228152313220.jpg",
"sell_num": "2",
"min_goods_price": "2.00",
"min_market_price": "10",
"activity_type": "1",
"ticket_type": "2",
"cat_id": "17",
"order_sell_money": "2.00",
"app_tag_text": "官方活动",
"is_official": 1
},
{
"aid": "102491",
"title": "lytest——通用 原价=现价 实体票",
"sub_title": "新上架",
"banner": "http://img3.fumubang.net/huodong/banner/X20151229150132592.png",
"sell_num": "3",
"min_goods_price": "0.10",
"min_market_price": "10",
"activity_type": "1",
"ticket_type": "3",
"cat_id": "20",
"order_sell_money": "1.00",
"app_tag_text": "官方活动",
"is_official": 1
},
{
"aid": "102263",
"title": "sam酒店rf测试",
"sub_title": "快速上架1021",
"banner": "http://img3.fumubang.net/huodong/banner/X20150130142944459.jpg",
"sell_num": "1",
"min_goods_price": "478.00",
"min_market_price": "488",
"activity_type": "1",
"ticket_type": "4",
"cat_id": "25",
"order_sell_money": null,
"app_tag_text": "官方活动",
"is_official": 1
},
{
"aid": "101975",
"title": "ming_酒店测试2222",
"sub_title": "酒店",
"banner": "http://img3.fumubang.net/huodong/banner/X20150915101230471.jpg",
"sell_num": "2",
"min_goods_price": "1.01",
"min_market_price": "200",
"activity_type": "1",
"ticket_type": "4",
"cat_id": "45",
"order_sell_money": null,
"app_tag_text": "官方活动",
"is_official": 1
},
{
"aid": "101617",
"title": "samtest酒店快速上架",
"sub_title": "",
"banner": "http://img3.fumubang.net/huodong/banner/X20140814111121327.png",
"sell_num": "5",
"min_goods_price": "78.00",
"min_market_price": "88",
"activity_type": "1",
"ticket_type": "4",
"cat_id": "43",
"order_sell_money": null,
"app_tag_text": "官方活动",
"is_official": 1
},
{
"aid": "101449",
"title": "sam app特惠演出票测试 app特惠app特惠app特惠app特惠app特惠app特惠app特惠app特惠app特惠app特惠app特惠app特惠app特惠app特惠",
"sub_title": "for joanna 13~100",
"banner": "http://img3.fumubang.net/huodong/banner/X20150130142944459.jpg",
"sell_num": "1",
"min_goods_price": "7.00",
"min_market_price": "10",
"activity_type": "1",
"ticket_type": "1",
"cat_id": "27",
"order_sell_money": null,
"app_tag_text": "官方活动",
"is_official": 1
},
{
"aid": "101417",
"title": "活动测试",
"sub_title": "111111111111111111111111",
"banner": "http://img3.fumubang.net/huodong/banner/X20150729161312273.jpg",
"sell_num": "6",
"min_goods_price": "2.00",
"min_market_price": "2",
"activity_type": "1",
"ticket_type": "3",
"cat_id": "20",
"order_sell_money": null,
"app_tag_text": "官方活动",
"is_official": 1
},
{
"aid": "101385",
"title": "【即买即用】奇思妙想魔相馆",
"sub_title": "",
"banner": "http://img3.fumubang.net/huodong/banner/X20150728142823603.JPG",
"sell_num": "3",
"min_goods_price": "47.50",
"min_market_price": "65",
"activity_type": "1",
"ticket_type": "3",
"cat_id": "21",
"order_sell_money": null,
"app_tag_text": "官方活动",
"is_official": 1
},
{
"aid": "100785",
"title": "卢湾区 joanna_测试-不支持退货",
"sub_title": "for testing hahha",
"banner": "http://img3.fumubang.net/huodong/banner/X20150325180018305.jpg",
"sell_num": "18",
"min_goods_price": "1.00",
"min_market_price": "4",
"activity_type": "1",
"ticket_type": "3",
"cat_id": "43",
"order_sell_money": null,
"app_tag_text": "官方活动",
"is_official": 1
}
],
"page": {
"num": "11",
"page": 1,
"pagesize": 10
}
}
}
错误返回示例
<syntaxhighlight lang="php"> <error_code>100001</error_code> <error_msg>签名失败</error_msg> </syntaxhighlight>