а√在线中文网新版地址在线,播五月开心婷婷综合,午夜国产精品视频在线,√8天堂资源地址中文在线,80岁色老头oldmanvideos

注冊(cè)送短信

本機(jī)號(hào)碼認(rèn)證API


概覽



vfmobile/Verify是submail的本機(jī)號(hào)碼認(rèn)證API,業(yè)務(wù)平臺(tái)發(fā)起本機(jī)號(hào)碼認(rèn)證請(qǐng)求,支持三網(wǎng)。



URL


<主> http://tpa.mysubmail.com/vfmobile/verify  
<備> https://tpa.mysubmail.com/vfmobile/verify


http請(qǐng)求方式


請(qǐng)求方式content-type設(shè)置
http postmultipart/form-data、x-www-form-urlencoded、application/json


返回參數(shù)格式



jsonString



請(qǐng)求參數(shù)說(shuō)明


參數(shù)是否必填類(lèi)型類(lèi)型
appidstring在 SUBMAIL 一鍵登錄服務(wù)中創(chuàng)建并且認(rèn)證通過(guò)的應(yīng)用 ID
signaturestringappkey+時(shí)間戳+token拼接,并用sha256方式加密
osstring請(qǐng)求主體類(lèi)型h5/小程序 h5=1 小程序=2
timestampstringUNIX 時(shí)間戳
tokenstringSDK 中獲得的取號(hào)token
mobile_numberint待驗(yàn)證的手機(jī)號(hào)碼
userInformationstring加密的瀏覽器指紋,由前端js采 集
typeint服務(wù)商類(lèi)型,1=中國(guó)移動(dòng),2=中國(guó)聯(lián)通,3=中國(guó)電信


響應(yīng)消息


API請(qǐng)求失敗
{
    'status' : 'error',                                           
    'code'   : 1301 ,                                             // API返回的狀態(tài)碼 
    'msg'    : 'Null appid' ,                                     // API返回的描述
    'msg_id' : 'ee05d1635db847a2bf3c8317434539d6',                // API流水號(hào)
}
API請(qǐng)求成功
{
    'status' : 'success',                                         // API返回的狀態(tài)碼
    'msg_id' : ee05d1635db847a2bf3c8317434539d6,                  // API流水號(hào)
    'result' : {
        'identical' : true ,                                      // 是否認(rèn)證通過(guò)  true是 false否
        'msg' : 認(rèn)證通過(guò),                                           // 狀態(tài)描述
    };
}
注意:
    status參數(shù)為success時(shí),進(jìn)行扣費(fèi)。


API 返回參數(shù)狀態(tài)碼與描述


code參數(shù)msg描述
0successAPI請(qǐng)求成功
-1API Gateway Error:......接口請(qǐng)求失敗,相關(guān)運(yùn)營(yíng)商錯(cuò)誤碼和錯(cuò)誤描述
1301Null appidappid參數(shù)為空
1302Invalid appkey無(wú)效的appkey
1303Unknown mobile type未知的運(yùn)營(yíng)商類(lèi)型參數(shù)
1304Unknown platform無(wú)效的操作類(lèi)型 h5和小程序
1305Invalid timestamp無(wú)效的時(shí)間戳參數(shù)
1306Invalid appid無(wú)效的appid參數(shù)
1307Appid unauthorizedappid未授權(quán)
1308Invalid signature無(wú)效的signature參數(shù)
1309Appid is disabledAppid被禁用
1310Account is disabled賬戶(hù)被禁用
1311Appid does not existAppid不存在
1312Null tokentoken參數(shù)為空
1313Null phoneNum無(wú)效的手機(jī)號(hào)
1314Insufficient balance賬戶(hù)余額不足
1315Null userInformation無(wú)效的瀏覽器指紋
1316APPID has been set IP whitelist,your IP is not in the scope of this white list請(qǐng)求的 APPID 已設(shè)置 IP 白名單,您的 IP 不在此白名單范圍
1317Account has no access賬號(hào)沒(méi)有該接口的權(quán)限
1318TIME OUT請(qǐng)求時(shí)間超時(shí)
1319Deduction Failed扣款失敗
1319Credit Deduction Log Failed扣款日志記錄失敗
1320Appid Missing required parametersappid缺少必要參數(shù)