| Version 6 (modified by wangjianqiang, 14 years ago) (diff) |
|---|
平台接口设计
Android设备注册接口
接口地址:
http://realm_name/register
接口参数定义如下:
| 参数名 | 说明 |
| app_id | 应用的唯一标识id,Android应用使用应用的package作为id |
| device_id | Android设备的device_id |
| mac | 设备无线网卡的MAC地址 |
| model | 设备型号 |
| os_version | 设备的Android操作系统版本 |
接口响应JSON:
{
"status": 1,
"client_id": "xxxxxxxxxxxxxxxxx",
"info": "额外信息"
}
其中:
- status取值为:1 注册成功,0 已注册过,-1 注册失败
- client_id为推送平台分配给该设备的udid
- info包含额外的说明信息,用于status为-1时平台所给的错误提示
注意:
- 接口参数必须用PSOT方式提交
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)