Changes between Version 15 and Version 16 of doc/interface/platform


Ignore:
Timestamp:
06/20/2012 10:19:01 AM (14 years ago)
Author:
wangjianqiang
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • doc/interface/platform

    v15 v16  
    55接口地址: 
    66{{{ 
    7   http://pns.imofan.com/register 
     7  http://pns.imofan.com/receiver/register 
    88}}} 
    99 
     
    3737接口地址: 
    3838{{{ 
    39   http://pns.imofan.com/ 
     39  http://pns.imofan.com/app/token 
    4040}}} 
    4141 
     
    6363||token||推送平台分配给该客户端的推送Token,仅当stat==-1时,返回值为|| 
    6464||info||包含额外的说明信息,用于stat为-1时平台所给的错误提示|| 
     65 
     66 
     67== 消息推送接口 == 
     68 
     69接口地址: 
     70{{{ 
     71  http://pns.imofan.com/sender/push 
     72}}} 
     73 
     74接口请求参数定义: 
     75||参数名||说明|| 
     76||appkey||应用的唯一标识id,由魔方系统生成|| 
     77||token||推送平台分配给该客户端的推送Token|| 
     78||message||要推送的消息|| 
     79 
     80注意: 
     81* 参数必须用POST方式提交 
     82   
     83接口响应JSON格式定义: 
     84{{{ 
     85  { 
     86    "stat": 1, 
     87    "info": "分配token失败时的额外信息" 
     88  } 
     89}}} 
     90 
     91返回值定义: 
     92||返回值||说明|| 
     93||stat||取值为:1 推送成功,-1 推送失败|| 
     94||info||包含额外的说明信息,用于stat为-1时平台所给的错误提示||