POST User/CreateAccount
创建账户
Request Information
URI Parameters
None.
Body Parameters
UserCreatePars| Name | Description | Type | Additional information |
|---|---|---|---|
| phone |
手机号 |
string |
None. |
| pwd |
密码 |
string |
None. |
| name |
用户昵称 |
string |
None. |
| brithday |
生日 yyyy-MM-dd |
string |
None. |
| sex |
性别 1男 2女 |
integer |
None. |
| handedness |
惯用手 1左 2右 |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"code": "200",
"data": {
"phone": "sample string 1",
"pwd": "sample string 2",
"name": "sample string 3",
"brithday": "sample string 4",
"sex": 5,
"handedness": 6
},
"msg": null
}
application/xml, text/xml
Sample:
<UserCreatePars xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HL.Basis.Web.Models.Parameter"> <brithday>sample string 4</brithday> <handedness>6</handedness> <name>sample string 3</name> <phone>sample string 1</phone> <pwd>sample string 2</pwd> <sex>5</sex> </UserCreatePars>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
创建账户
CreateAccountResultWeb| Name | Description | Type | Additional information |
|---|---|---|---|
| userToken |
加密token |
string |
None. |
| fdId |
家庭成员id |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"code": "200",
"data": {
"userToken": "sample string 1",
"fdId": 2
},
"msg": null
}
application/xml, text/xml
Sample:
<CreateAccountResultWeb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HL.Basis.Web.Models.Result"> <fdId>2</fdId> <userToken>sample string 1</userToken> </CreateAccountResultWeb>