POST api/Account

微信开发者PC端扫二维码登录(用户先绑定才能使用微信登录)

Request Information

URI Parameters

None.

Body Parameters

WeChatModel
NameDescriptionTypeAdditional 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:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'WeChatModel'.

Response Information

Resource Description

微信开发者PC端扫二维码登录(用户先绑定才能使用微信登录)

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.