POST System/GetAppUserInfo
根据微信公共号和小程序用户信息,支付宝服务窗和小程序用户信息,现阶段仅仅获得微信openid和支付宝buyerid
请求信息
请求URI参数
无
请求数据参数
微信小程序/公共号/支付宝登陆信息
AppLoginInfo| 名称 | 说明 | 类型 | 扩展说明 |
|---|---|---|---|
| appid |
微信小程序/微信公共号/支付宝的appid |
字符串 |
必填 |
| secret |
微信AppSecret ,如果不传递,则会自动去联科配置Appid对应的AppSecret,支付宝不需要 |
字符串 |
无 |
| login_type |
登录类型 0:微信小程序 1:微信公共号 2:支付宝 |
整数 |
必填 |
| auth_code |
登录凭证 |
字符串 |
必填 |
请求数据格式
application/json, text/json
例子:
{
"appid": "sample string 1",
"secret": "sample string 2",
"login_type": 3,
"auth_code": "sample string 4"
}
响应数据
资源说明
微信用户信息。
ResultInfoOfAppUserInfo| 名称 | 说明 | 类型 | 扩展说明 |
|---|---|---|---|
| code | ResultCode |
无 |
|
| msg | 字符串 |
无 |
|
| data | AppUserInfo |
无 |
响应数据格式
application/json, text/json
例子:
{
"code": "SUCCESS",
"msg": "sample string 1",
"data": {
"openid": "sample string 1",
"session_key": "sample string 2",
"unionid": "sample string 3"
}
}