POST api/Account/decodeUserInfo

微信小程序之获取并解密用户数据

Request Information

URI Parameters

None.

Body Parameters

WeChatSignInModel
NameDescriptionTypeAdditional information
encryptedData

完整用户信息的加密数据

string

None.

iv

加密算法的初始向量

string

None.

sessionKey

sessionKey

string

None.

Code

微信code

string

None.

phone

string

None.

openid

string

None.

unionid

string

None.

Request Formats

application/json, text/json

Sample:
{
  "encryptedData": "sample string 1",
  "iv": "sample string 2",
  "sessionKey": "sample string 3",
  "Code": "sample string 4",
  "phone": "sample string 5",
  "openid": "sample string 6",
  "unionid": "sample string 7"
}

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 'WeChatSignInModel'.

Response Information

Resource Description

微信小程序之获取并解密用户数据

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.