POST api/User/RegisterZKY

Request Information

Body Parameters

RegisterZKYModel
NameDescriptionTypeAdditional information
LoginName

string

None.

Password

string

None.

RePassword

string

None.

UserName

string

None.

UserPhone

string

None.

SOSPhone

string

None.

IMEI

string

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:
{
  "LoginName": "sample string 1",
  "Password": "sample string 2",
  "RePassword": "sample string 3",
  "UserName": "sample string 4",
  "UserPhone": "sample string 5",
  "SOSPhone": "sample string 6",
  "IMEI": "sample string 7",
  "Token": "sample string 8",
  "Language": "sample string 9",
  "AppId": "sample string 10"
}

application/xml, text/xml

Sample:
<RegisterZKYModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 10</AppId>
  <Language>sample string 9</Language>
  <Token>sample string 8</Token>
  <IMEI>sample string 7</IMEI>
  <LoginName>sample string 1</LoginName>
  <Password>sample string 2</Password>
  <RePassword>sample string 3</RePassword>
  <SOSPhone>sample string 6</SOSPhone>
  <UserName>sample string 4</UserName>
  <UserPhone>sample string 5</UserPhone>
</RegisterZKYModel>

Response Information

Resource Description

Statestatus codeillustrate:
0. Indicates success

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>