POST api/User/RegisterNeedSMSCode

register The user authenticates by text message

Request Information

Body Parameters

RegisterModel
NameDescriptionTypeAdditional information
Username

user

string

None.

LoginName

login name

string

None.

Email

mail

string

None.

Password

password

string

None.

SerialNumber

IMEI

string

None.

Contact

contacts

string

None.

ContactPhone

Contacts phone

string

None.

ThirdName

Third user

string

None.

ThirdID

Third user id

string

None.

ThirdType

Third party login mode

integer

None.

ThirdImg

Third party head portrait

string

None.

SMSCode

message authentication code

string

None.

Language

language

string

None.

AppId

AppId

string

None.

IsInvite

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Username": "sample string 1",
  "LoginName": "sample string 2",
  "Email": "sample string 3",
  "Password": "sample string 4",
  "SerialNumber": "sample string 5",
  "Contact": "sample string 6",
  "ContactPhone": "sample string 7",
  "ThirdName": "sample string 8",
  "ThirdID": "sample string 9",
  "ThirdType": 10,
  "ThirdImg": "sample string 11",
  "SMSCode": "sample string 12",
  "Language": "sample string 13",
  "AppId": "sample string 14",
  "IsInvite": "sample string 15"
}

application/xml, text/xml

Sample:
<RegisterModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 14</AppId>
  <Contact>sample string 6</Contact>
  <ContactPhone>sample string 7</ContactPhone>
  <Email>sample string 3</Email>
  <IsInvite>sample string 15</IsInvite>
  <Language>sample string 13</Language>
  <LoginName>sample string 2</LoginName>
  <Password>sample string 4</Password>
  <SMSCode>sample string 12</SMSCode>
  <SerialNumber>sample string 5</SerialNumber>
  <ThirdID>sample string 9</ThirdID>
  <ThirdImg>sample string 11</ThirdImg>
  <ThirdName>sample string 8</ThirdName>
  <ThirdType>10</ThirdType>
  <Username>sample string 1</Username>
</RegisterModel>

Response Information

Resource Description

Statestatus codeillustrate:
0. registersuccess
1001. User name has beenregister
1002. registerfailure
1003. User name, password cannot be empty
1100. Device Imei does not exist [This is detected only if the parameters are supplied with imei]
1102. This is detected only if the parameters are supplied with imei
1700. The third party account is bound to expire its account [only when register third-party login time detection]
3800. Email has been register

RegisterResult
NameDescriptionTypeAdditional information
Message

Register return message

string

None.

AccessToken

Visit Token

string

None.

User

Register user message

UserLoginInfo

None.

ThirdParty

Third party login information

Object

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Message": "sample string 1",
  "AccessToken": "sample string 2",
  "User": {
    "UserId": 1,
    "Username": "sample string 2",
    "LoginName": "sample string 3",
    "Timezone": "sample string 4",
    "Avatar": "sample string 5",
    "Email": "sample string 6",
    "DeviceCount": 7,
    "CodeUrl": "sample string 8",
    "UserType": 9,
    "SubUsersCount": 10,
    "Calorie": 11,
    "Steps": 12,
    "CellPhone": "sample string 13"
  },
  "ThirdParty": {},
  "State": 4
}

application/xml, text/xml

Sample:
<RegisterResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>4</State>
  <AccessToken>sample string 2</AccessToken>
  <Message>sample string 1</Message>
  <ThirdParty />
  <User xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
    <d2p1:Avatar>sample string 5</d2p1:Avatar>
    <d2p1:Calorie>11</d2p1:Calorie>
    <d2p1:CellPhone>sample string 13</d2p1:CellPhone>
    <d2p1:CodeUrl>sample string 8</d2p1:CodeUrl>
    <d2p1:DeviceCount>7</d2p1:DeviceCount>
    <d2p1:Email>sample string 6</d2p1:Email>
    <d2p1:LoginName>sample string 3</d2p1:LoginName>
    <d2p1:Steps>12</d2p1:Steps>
    <d2p1:SubUsersCount>10</d2p1:SubUsersCount>
    <d2p1:Timezone>sample string 4</d2p1:Timezone>
    <d2p1:UserId>1</d2p1:UserId>
    <d2p1:UserType>9</d2p1:UserType>
    <d2p1:Username>sample string 2</d2p1:Username>
  </User>
</RegisterResult>