Changes between Version 7 and Version 8 of AndroidPushInterface2
- Timestamp:
- 10/23/2012 11:53:33 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AndroidPushInterface2
v7 v8 13 13 ||参数名||说明|| 14 14 ||app_id||应用的唯一标识id的列表,由魔方系统生成|| 15 ||ts||时间戳 列表||15 ||ts||时间戳((time - 1325347200000L) / 1000)|| 16 16 ||dev_id||设备的唯一标识,采用魔方数据分析的dev_id|| 17 ||md5||对app_key、dev_id进行不可逆加密后的校验码|| 18 19 注意: 20 * 参数必须用POST方式提交 21 * 平台提供给客户端的api包发出请求的user-agent固定为:imofan pns client,若判断user-agent不匹配,则返回404 17 ||md5||校验码 ( md5 = ts % app_id)|| 22 18 23 19 '''报文约定''' … … 34 30 "app_ver": ">=320", 35 31 "os_ver": "<2.2", 36 "content":"好消息...Android客户端已经可以推送消息了!" 37 "ts":201210101156 32 "content":"好消息...Android客户端已经可以推送消息了!", 33 "ts":201210101156, 34 "lang":"en" 38 35 }, 39 36 { … … 42 39 "app_ver": ">=320", 43 40 "os_ver": "<2.2", 44 "content":"解放军已经实际控制钓鱼岛" 45 "ts":201210101157 41 "content":"解放军已经实际控制钓鱼岛", 42 "ts":201210101157, 43 "lang":"cn" 44 }, 45 { 46 "msg_id": 3518, 47 "app_id": "2", 48 "app_ver": ">=320", 49 "os_ver": "<2.2", 50 "content":"解放军已经实际控制钓鱼岛", 51 "ts":201210101157, 52 "lang":"all" 46 53 }, 47 54 ... … … 52 59 响应报文定义说明: 53 60 ||返回值||说明|| 54 ||is_new||是否有新消息,为1表示有新内容,为0表示没有新的消息||55 61 ||messages||消息列表|| 56 62 ||msg_id||消息id|| … … 60 66 ||content||消息正文|| 61 67 ||ts||消息的时间戳|| 68 ||lang||语言(中文/英文/全部)|| 62 69 63 70
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)