4.0 第三方登录(可选手机号).md
2.06 KB
请求参数说明:
| 参数 | 必选 | 类型 | 说明 |
|---|---|---|---|
| appId | true | string | 应用ID |
| thirdPartyPlat | true | int | 第三方平台编号 [platform : 1:sina weibo 2:qq weibo 3:weixin 4:renren ] |
| thirdPartyId | true | string | 第三方用户ID [qq: 建议使用unionid, wx: 建议使用unionid, sina: 建议使用idstr]; 注意:同一用户在登录Sp下不同app时,thirdPartyId必须相同 |
| uuid | true | string | 设备ID |
| frmId | false | string | 渠道ID |
| clientPlat | true | string | 客户端平台[i:IOS客户端,a:Android客户端;w:网页] |
| sign | true | string | 签名 |
返回格式说明:
{
"errorCode": "0",
"errorMessage": "成功",
"data": {
"uid": "10463520",
"nickName": "test",
"gender": "n",
"location": "未知",
"faceUrl": "https://y1.cnliveimg.com/mobile/images/mobilehead/default/face_60X60.jpg",
"mobile": "15527615643",
"email": "",
"extInfo": "",
"qqUid": "",
"wxUid": "",
"sinaUid": "",
"renrenUid": "6666",
"hUid": "",
"token": "qMVBrKYtQvNv0TX5kUJs5X596K9YGNphiT459XroupmuKSYDBJiUY2+/oTO13iem"
}
}
{
"errorCode": "1",
"errorMessage": "请求参数无效"
}
{
"errorCode": "41014",
"errorMessage": "第三方平台编号无效"
}
{
"errorCode": "41005",
"errorMsg": "ClientPlat无效"
}
{
"errorCode": "42013",
"errorMsg": "此帐号未注册,请先注册"
}
{
"errorCode": "40005",
"errorMessage": "其他错误"
}