POST User/CreateFamily
Request Information
URI Parameters
None.
Body Parameters
FamilyCreatePars| 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. |
| code |
短信验证码 |
string |
None. |
| unionid |
unionid |
string |
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,
"code": "sample string 7",
"unionid": "sample string 8"
},
"msg": null
}
application/xml, text/xml
Sample:
<FamilyCreatePars xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HL.Basis.Web.Controllers"> <brithday>sample string 4</brithday> <code>sample string 7</code> <handedness>6</handedness> <name>sample string 3</name> <phone>sample string 1</phone> <pwd>sample string 2</pwd> <sex>5</sex> <unionid>sample string 8</unionid> </FamilyCreatePars>
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>