接口名称 |
3使用unionid、mobile注册V2
|
地址 |
https://api.cnlive.com/open/api2/user/registerByUnionIdAndMobileV2.action |
method |
post |
返回数据 |
json
|
请求参数说明:
参数 |
必选 |
类型 |
说明 |
appId |
true |
string |
应用ID |
openId |
true |
string |
微信openId |
unionId |
true |
string |
微信unionId |
mobileEncryptedData |
true |
string |
微信加密信息 |
iv |
true |
string |
微信iv |
source |
true |
string |
小程序 |
clientPlat |
true |
string |
客户端平台[i:IOS客户端,a:Android客户端, w: 网页] |
sign |
true |
string |
签名 |
返回格式说明:
{
"errorCode": "0",
"errorMessage": "成功"
"data":{
"appId": "769_002",
"openId": "aaabbb",
"unionId": "asd123",
"sid": "111"
}
}
{
"errorCode": "42026",
"errorMessage": "OpenId错误"
}
{
"errorCode": "40001",
"errorMessage": "解密错误"
}
{
"errorCode": "41010",
"errorMessage": "手机号无效"
}
{
"errorCode": "42028",
"errorMessage": "用户信息不存在"
}
{
"errorCode": "1",
"errorMessage": "请求参数无效"
}
{
"errorCode": "41005",
"errorMessage": "ClientPlat无效"
}
{
"errorCode": "40005",
"errorMessage": "其他错误"
}