Changes between Version 3 and Version 4 of AndroidPushInterface2
- Timestamp:
- 10/11/2012 05:49:29 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AndroidPushInterface2
v3 v4 7 7 接口地址: 8 8 {{{ 9 http://p.imofan.com/pull/{app_ key}/{dev_id}/{ver_code}9 http://p.imofan.com/pull/{app_id}/{ts}/{dev_id}/{ver_code} 10 10 }}} 11 11 12 12 接口请求参数定义: 13 13 ||参数名||说明|| 14 ||app_key||应用的唯一标识id,由魔方系统生成|| 14 ||app_id||应用的唯一标识id的列表,由魔方系统生成|| 15 ||ts||时间戳列表|| 15 16 ||dev_id||设备的唯一标识,采用魔方数据分析的dev_id|| 16 17 ||ver_code||对app_key、dev_id进行不可逆加密后的校验码|| … … 22 23 '''报文约定''' 23 24 24 请求报文JSON格式定义: 25 {{{ 26 { 27 "app_list": [b5d3828499d0590600000001,b5d3828499d0590600000005,b5d3828499d0590600000008,b5d3828499d0590600000003], 28 "ts_list":[201210111041,201210110952,201210110810,201210110320] 29 } 30 }}} 31 32 请求报文定义说明: 33 ||返回值||说明|| 34 ||app_list||app的key列表|| 35 ||ts_list||对应app的最后一条消息的时间戳(年月日时分) 的列表,默认值为0|| 25 请求报文:无 36 26 37 27 响应报文JSON格式定义: 38 28 {{{ 39 29 { 40 "is_new": 1, 41 "messages": [ 30 "messages": [ 42 31 { 43 32 "msg_id": 3516, … … 46 35 "os_ver": "<2.2", 47 36 "content":"好消息...Android客户端已经可以推送消息了!" 48 "ts":201210101156 ,37 "ts":201210101156 49 38 }, 50 39 { … … 54 43 "os_ver": "<2.2", 55 44 "content":"解放军已经实际控制钓鱼岛" 56 "ts":201210101157 ,45 "ts":201210101157 57 46 }, 58 47 ...
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)