GET api/Account/GetWxOAuthUserInfo?appid={appid}&code={code}
获取微信授权后的用户信息
请求信息(Request)
URI 参数
名称 | 描述 | 类型 | 备注 |
---|---|---|---|
appid |
appid |
string |
Required |
code |
code |
string |
Required |
Body 参数
None.
响应信息(Response)
资源描述
RequestResultOfThirdPartOAuthDto名称 | 描述 | 类型 | 备注 |
---|---|---|---|
Data | ThirdPartOAuthDto |
None. |
|
Status |
状态(0:成功,1:失败) |
integer |
None. |
Message |
导致失败的相关消息 |
string |
None. |
Total |
集合总数,用于分页时使用 |
integer |
None. |
响应格式
application/json, text/json
Sample:
{ "Data": { "ThirdPart": 1, "Name": "sample string 1", "AvatarUrl": "sample string 2", "OpenId": "sample string 3", "UnionId": "sample string 4", "Appid": "sample string 5", "SessionKey": "sample string 6" }, "Status": 1, "Message": "sample string 2", "Total": 3 }
application/xml, text/xml
Sample:
<RequestResultOfThirdPartOAuthDto6NgmDdgv xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WLife.Application"> <Message>sample string 2</Message> <Status>1</Status> <Total>3</Total> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/WLife.Application.DTOs"> <d2p1:Appid>sample string 5</d2p1:Appid> <d2p1:AvatarUrl>sample string 2</d2p1:AvatarUrl> <d2p1:Name>sample string 1</d2p1:Name> <d2p1:OpenId>sample string 3</d2p1:OpenId> <d2p1:SessionKey>sample string 6</d2p1:SessionKey> <d2p1:ThirdPart>Weixin</d2p1:ThirdPart> <d2p1:UnionId>sample string 4</d2p1:UnionId> </Data> </RequestResultOfThirdPartOAuthDto6NgmDdgv>