POST api/Account/GetWxSessionKey
微信小程序获取微信sessionKey/openid/unionid
Request Information
URI Parameters
None.
Body Parameters
WeChatModelName | Description | Type | Additional information |
---|---|---|---|
Code |
微信code |
string |
None. |
Url |
登录后返回的页面 |
string |
None. |
Scope |
0:静默授权(只能获取用户openid);1:弹出授权页面,获取用户信息 |
integer |
None. |
redirect_uri |
微信授权登录后返回的页面 |
string |
None. |
openid | string |
None. |
|
Referer | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Code": "sample string 1", "Url": "sample string 2", "Scope": 3, "redirect_uri": "sample string 4", "openid": "sample string 5", "Referer": "sample string 6" }
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
微信小程序获取微信sessionKey/openid/unionid
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.