POST api/Amazon/AmazonRegister
向亚马逊推送注册手机
Request Information
Body Parameters
AmazonRegisterModel| Name | Description | Type | Additional information |
|---|---|---|---|
| UserId |
用户ID |
integer |
None. |
| AToken |
亚马逊token |
string |
None. |
| PhoneImei |
针对android重复推送 上传android设备Imei |
string |
None. |
| PhoneType |
手机系统类型 0:Android;1:IOS |
integer |
None. |
| Token |
登录后获取到的 Token |
string |
None. |
| Language |
语言选项 |
string |
None. |
| AppId |
APP应用标识 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserId": 1,
"AToken": "sample string 2",
"PhoneImei": "sample string 3",
"PhoneType": 4,
"Token": "sample string 5",
"Language": "sample string 6",
"AppId": "sample string 7"
}
application/xml, text/xml
Sample:
<AmazonRegisterModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel"> <AppId>sample string 7</AppId> <Language>sample string 6</Language> <Token>sample string 5</Token> <AToken>sample string 2</AToken> <PhoneImei>sample string 3</PhoneImei> <PhoneType>4</PhoneType> <UserId>1</UserId> </AmazonRegisterModel>
Response Information
Resource Description
State 值为:
0. 表示成功
4000. 表示失败
| Name | Description | Type | Additional information |
|---|---|---|---|
| Message |
消息 [大多数情况下可通过该消息做为提示语] |
string |
None. |
| State |
状态码 |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Message": "sample string 1",
"State": 2
}
application/xml, text/xml
Sample:
<NormalResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel"> <State>2</State> <Message>sample string 1</Message> </NormalResult>