V1/other/theme info

来自技术开发小组内部wiki
跳转至: 导航搜索

功能说明

获取APP单个主题内容数据(类别,活动)


URL

正式环境
http://api.fumubang.com/v1/other/theme_info
测试环境
http://api.fumubang.net/v1/other/theme_info

格式

json

HTTP请求方式

POST

输入参数说明

uid = xxxxxxxx 用户UID

参数名称 是否必须 类型 描述
theme_id int 以json格式POST传入,主题ID

请求示例

http://api.fumubang.com/v1/other/theme_info

openid=xxxxxxx 父母邦分配

openkey=xxxxxxxx 父母邦分配

city_id = xxxxxxxx 城市ID


参数用POST方式提交

返回方式说明

xml或json

正确返回说明

<?xml version="1.0" encoding="utf-8"?>

 <theme_id>85</theme_id>主题id
 <banner>http://img3.fumubang.net/huodong/banner/X20140807094602238.jpg</banner>banner
 <city_id>1</city_id>城市id
 <list>
   <item>
     <aid>100025</aid>活动id
     <title>HELLO - 电子</title>活动标题
     <sub_title>测试一下测试一下测试一下测试一下测试一下测试一下</sub_title>活动副标题
     <banner>http://img3.fumubang.net/huodong/banner/X20140623223025888.png</banner>
     <sell_num>68</sell_num>卖出数量
     <is_sell>1</is_sell>1 能购买的 0报名的
     <apply_num>0</apply_num>报名人数
    <aid_type>1</aid_type>1报名 2购买 3不能报名不能购买
     <min_market_price>456</min_market_price>最小超市价格
     <min_goods_price>0.01</min_goods_price>最小价格
   </item>
   <item>
     <aid>100145</aid>
     <title>test测试活动14--H5改版测试活动测试活动测试活动123</title>
     <sub_title>测试一下测试一下测试一下测试一下测试一下测试一下</sub_title>
     <banner>http://img3.fumubang.net/huodong/banner/X20140725112731431.jpg</banner>
     <sell_num>1</sell_num>
     <is_sell>1</is_sell>
     <apply_num>1</apply_num>
     <min_market_price>200</min_market_price>
     <min_goods_price>150</min_goods_price>
   </item>
 </list>

错误返回示例

参数不全

<error_code>300000</error_code>
<error_msg>参数不全</error_msg>

示例代码