V1/other/index hot keywrod

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

功能说明

获取APP首页推荐数据(类别,活动) 本接口是全平台通用的,即发送请求后,可根据请求中传入的"city_id"平台参数返回发送状态。
例如:如果传入的city_id = 1,返回北京的数据等


URL

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

格式

json

HTTP请求方式

POST

输入参数说明

uid = xxxxxxxx 用户UID

参数名称 是否必须 类型 描述
city_id int 以json格式POST传入,城市ID

请求示例

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

openid=xxxxxxx 父母邦分配

openkey=xxxxxxxx 父母邦分配

city_id = xxxxxxxx 城市ID


参数用POST方式提交

返回方式说明

xml或json

正确返回说明

 <datum>
  <keyword>划水10</keyword>关键字
  <ksort>10</ksort>排序
 </datum>
 <datum>
  <keyword>划水9</keyword>
  <ksort>9</ksort>
 </datum>

错误返回示例

参数不全

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


示例代码