POST api/User/CheckVaildateCodeByUser

Determine whether the user exists and the captcha is correct

Request Information

Body Parameters

CheckVaildateModel
NameDescriptionTypeAdditional information
Type

1:register 2:retrieve password 3: change password

integer

None.

LoginName

login name

string

None.

SMSCode

message authentication code

string

None.

Language

language

string

None.

AppId

AppId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Type": 1,
  "LoginName": "sample string 2",
  "SMSCode": "sample string 3",
  "Language": "sample string 4",
  "AppId": "sample string 5"
}

application/xml, text/xml

Sample:
<CheckVaildateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 5</AppId>
  <Language>sample string 4</Language>
  <LoginName>sample string 2</LoginName>
  <SMSCode>sample string 3</SMSCode>
  <Type>1</Type>
</CheckVaildateModel>

Response Information

Resource Description

Statestatus codeillustrate:
0. registersuccess
1001. User name has been register
1003. The user name cannot be empty
3701. The captcha has expired
3700. verify code is wrong

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",
    "UserStatus": 14
  },
  "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:UserStatus>14</d2p1:UserStatus>
    <d2p1:UserType>9</d2p1:UserType>
    <d2p1:Username>sample string 2</d2p1:Username>
  </User>
</RegisterResult>