接口名称 |
根据微信unionId登录
签名
|
地址 |
https://api.cnlive.com/open/api2/user/loginInWxUnionId4Server |
method |
post |
返回数据 |
json
|
请求参数说明:
参数 |
必选 |
类型 |
说明 |
appId |
true |
string |
应用ID |
openId |
true |
string |
微信的openId |
unionId |
true |
string |
微信的unionid |
clientPlat |
true |
string |
客户端平台[i:IOS客户端,a:Android客户端, w: 网页] |
sign |
true |
string |
签名 |
返回格式说明:
{
"errorCode": "42015",
"errorMessage": "unionId未注册,需要授权手机号"
"data":{
"appId": "003_002",
"openId": "aaabbb",
"unionId": "123456",
}
{
"errorCode": "42016",
"errorMessage": "unionId已注册,需要完善手机号"
"data":{
"appId": "769_002",
"openId": "aaabbb",
"unionId": "asd123",
}
{
"errorCode": "0",
"errorMessage": "成功",
"data": {
"uid": "145xxx",
"nickName": "xxxx",
"gender": "f",
"location": "BeiJing",
"faceUrl": "http://yweb0.cnliveimg.com/images/headImg/2018/0716/1531735082264_small.jpg",
"mobile": "158xxxxxxxx",
"countryCode": "86",
"email": "",
"extInfo": "",
"platformId": "",
"qqUid": "",
"wxUid": "asd123",
"sinaUid": "",
"renrenUid": "",
"hUid": "",
"token": "IjO5QidbWP5LEy3osSLmD38ImR73pn6Ui/Lg8V/eqSLcglOZ4OMBFA==",
"isNewUser": false,
"bigFaceUrl": "http://yweb0.cnliveimg.com/images/headImg/2018/0716/1531735082264.jpg"
}
}
{
"errorCode": "42018",
"errorMessage": "UnionId错误"
}
{
"errorCode": "1",
"errorMessage": "请求参数无效"
}
{
"errorCode": "41005",
"errorMessage": "ClientPlat无效"
}
{
"errorCode": "40005",
"errorMessage": "其他错误"
}