POST api/User/userInfo
用户信息详情
Request Information
URI Parameters
None.
Body Parameters
BasePost| Name | Description | Type | Additional information |
|---|---|---|---|
| uid |
账号id |
integer |
None. |
| token |
token |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"uid": 1,
"token": "sample string 2"
}
application/xml, text/xml
Sample:
<BasePost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Models"> <token>sample string 2</token> <uid>1</uid> </BasePost>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
userInfoResult| Name | Description | Type | Additional information |
|---|---|---|---|
| headimg | string |
None. |
|
| nickname | string |
None. |
|
| tel | string |
None. |
|
| balance | decimal number |
None. |
|
| Code | integer |
None. |
|
| Msg | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"headimg": "sample string 1",
"nickname": "sample string 2",
"tel": "sample string 3",
"balance": 4.0,
"Code": 5,
"Msg": "sample string 6"
}
application/xml, text/xml
Sample:
<userInfoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Controllers"> <Code xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Models">5</Code> <Msg xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Models">sample string 6</Msg> <balance>4</balance> <headimg>sample string 1</headimg> <nickname>sample string 2</nickname> <tel>sample string 3</tel> </userInfoResult>