POST api/Amazon/AmazonRegister

Push Amaze register cellphone

Request Information

Body Parameters

AmazonRegisterModel
NameDescriptionTypeAdditional information
UserId

User ID

integer

None.

AToken

Amazon token

string

None.

PhoneImei

Upload android device Imei to android

string

None.

PhoneType

Cell phone system type 0:Android;1:IOS

integer

None.

Token

Get it after logging in Token

string

None.

Language

Language Option

string

None.

AppId

APP Application Identifier

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 value:
0. Indicates success
4000. says failure

NormalResult
NameDescriptionTypeAdditional information
Message

Message [in most cases, the message can be used as a prompt]

string

None.

State

status code

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>