V2 0/message/get recommand list
来自技术开发小组内部wiki
功能说明
获取精彩推荐列表
URL
http://[域名]/v2_0/message/get_recommand_list
返回格式
支持json,xml.通过format参数来控制
HTTP请求方式
POST.可以post的数据为xml或json.
输入参数说明
各个参数请进行URL 编码,编码时请遵守 RFC 1738 (1)公共参数 发送请求时必须传入公共参数,详见公共参数说明。 (2)私有参数
参数名称 | 是否必须 | 类型 | 描述 |
---|---|---|---|
uid | 可选 | int | 用户UID |
idfa |
必须 | string |
设备号 |
cityid | 必须 | int | 城市分站 |
请求示例
正式环境 http://api.fumubang.com/v2_0/message/get_recommand_list 测试环境 http://api.fumubang.net/v2_0/message/get_recommand_list 本地环境 http://dev-api.fumubang.net/v2_0/message/get_recommand_list
返回参数说明
参数 | 说明 |
---|---|
msg_time |
消息时间 |
msg_text |
消息内容 |
msg_img |
消息图片 |
ext_field |
消息内容 notification_type: |
正确返回示例
{
"msg_list": [
{
"msg_time": "2016-11-10 11:58:24",
"msg_text": "内容",
"msg_img": "",
"ext_field": {
"notification_type": "1"
}
},
{
"msg_time": "2016-11-10 11:45:55",
"msg_text": "推送测试",
"msg_img": "",
"ext_field": {
"notification_type": "1"
}
},
{
"msg_time": "2016-11-10 11:31:31",
"msg_text": "消息内容",
"msg_img": "",
"ext_field": {
"notification_type": "1"
}
},
{
"msg_time": "2016-11-10 11:15:45",
"msg_text": "啊啊啊啊",
"msg_img": "",
"ext_field": {
"notification_type": "3",
"activityID": "103591",
"ticketsType": "1"
}
},
{
"msg_time": "2016-11-10 11:13:14",
"msg_text": "啊啊啊啊",
"msg_img": "",
"ext_field": {
"notification_type": "3",
"activityID": "103591",
"ticketsType": "1"
}
},
{
"msg_time": "2016-11-10 11:09:38",
"msg_text": "啊啊啊啊",
"msg_img": "",
"ext_field": {
"notification_type": "3",
"activityID": "103591",
"ticketsType": "1"
}
},
{
"msg_time": "2016-11-10 11:08:01",
"msg_text": "majiecewqaf",
"msg_img": "",
"ext_field": {
"notification_type": "3",
"activityID": "103633",
"ticketsType": "1"
}
}
]
}
"msg_list": [
{
"msg_time": "2016-11-10 11:58:24",
"msg_text": "内容",
"msg_img": "",
"ext_field": {
"notification_type": "1"
}
},
{
"msg_time": "2016-11-10 11:45:55",
"msg_text": "推送测试",
"msg_img": "",
"ext_field": {
"notification_type": "1"
}
},
{
"msg_time": "2016-11-10 11:31:31",
"msg_text": "消息内容",
"msg_img": "",
"ext_field": {
"notification_type": "1"
}
},
{
"msg_time": "2016-11-10 11:15:45",
"msg_text": "啊啊啊啊",
"msg_img": "",
"ext_field": {
"notification_type": "3",
"activityID": "103591",
"ticketsType": "1"
}
},
{
"msg_time": "2016-11-10 11:13:14",
"msg_text": "啊啊啊啊",
"msg_img": "",
"ext_field": {
"notification_type": "3",
"activityID": "103591",
"ticketsType": "1"
}
},
{
"msg_time": "2016-11-10 11:09:38",
"msg_text": "啊啊啊啊",
"msg_img": "",
"ext_field": {
"notification_type": "3",
"activityID": "103591",
"ticketsType": "1"
}
},
{
"msg_time": "2016-11-10 11:08:01",
"msg_text": "majiecewqaf",
"msg_img": "",
"ext_field": {
"notification_type": "3",
"activityID": "103633",
"ticketsType": "1"
}
}
]
}
错误返回示例
{
"error_code": "300001",
"error_msg": "参数错误"
}