POST User/WechatUserInfo
根据openid返回用户微信数据
Request Information
URI Parameters
None.
Body Parameters
WechatUserInfoPars| Name | Description | Type | Additional information |
|---|---|---|---|
| username |
用户名 |
string |
None. |
| password |
密码 |
string |
None. |
| openid |
openid |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"code": "200",
"data": {
"username": "sample string 1",
"password": "sample string 2",
"openid": "sample string 3"
},
"msg": null
}
application/xml, text/xml
Sample:
<WechatUserInfoPars xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HL.Basis.Web.Models.Parameter"> <openid>sample string 3</openid> <password>sample string 2</password> <username>sample string 1</username> </WechatUserInfoPars>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
根据openid返回用户微信数据
WechatUserInfoResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Nickname |
昵称 |
string |
None. |
| HeadImgUrl |
头像 |
string |
None. |
| Msg |
返回消息 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"code": "200",
"data": {
"Nickname": "sample string 1",
"HeadImgUrl": "sample string 2",
"Msg": "sample string 3"
},
"msg": null
}
application/xml, text/xml
Sample:
<WechatUserInfoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HL.Basis.Web.Models.Result"> <HeadImgUrl>sample string 2</HeadImgUrl> <Msg>sample string 3</Msg> <Nickname>sample string 1</Nickname> </WechatUserInfoResult>