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

注冊(cè)送短信

API: Factor/simple - 簡(jiǎn)版運(yùn)營(yíng)商三要素


概覽



? factor/simple 是 SUBMAIL 的簡(jiǎn)版身份驗(yàn)證 API,可以根據(jù)身份證號(hào)碼、手機(jī)號(hào)碼和姓名判斷三者是否一致,并獲取部分運(yùn)營(yíng)商相關(guān)信息。 和詳版運(yùn)營(yíng)商三要素接口對(duì)比,此接口僅會(huì)判斷三者是否一致,不會(huì)判斷三者之間的匹配關(guān)系



URL


<主> http://tpa.mysubmail.com/factor/simple
<備> https://tpa.mysubmail.com/factor/simple


http 請(qǐng)求方式


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


signature創(chuàng)建規(guī)則


1.請(qǐng)將以下參數(shù)按照字段升序(A-Z)排列
appkey、idNo 、mobile、name、timestamp

2.創(chuàng)建簽名字符串 :以"key=value" + "&"(連接符)+ "key=value" 的方式連接所有參數(shù)

3.創(chuàng)建簽名:拼接簽名字符串示例string = "appkey=xxxx&idNo=xxxx&mobile=188xxxx&name=張三& timestamp=1614759954",然后使用sha256(string)創(chuàng)建簽名

注:中文需要使用urlencode處理后再參與創(chuàng)建簽名


請(qǐng)求參數(shù)


參數(shù)類(lèi)型必需/可選默認(rèn)描述
appidstring必需無(wú)三要素 appid,自控制臺(tái)獲取
timestampstring必需無(wú)時(shí)間戳
namestring必需無(wú)待驗(yàn)證的身份證姓名
idNostring必需無(wú)待驗(yàn)證的身份證號(hào)碼
mobilestring必需無(wú)待驗(yàn)證的號(hào)碼
signaturestring必需無(wú)sha256加密校驗(yàn)數(shù)字證書(shū)


返回參數(shù)格式



jsonString



代碼示例



詳情請(qǐng)查詢demo示例文檔



響應(yīng)消息

API請(qǐng)求失敗
{
        // 狀態(tài)描述
        'status'  : 'error' ,
        // API流水號(hào)
        'send_id' : "********************************",
        // API返回的狀態(tài)碼    詳情查看 API錯(cuò)誤代碼與描述  文檔
        'code'    : 1201 ,
        // API返回的描述
        'msg'     : 'Incorrect APP ID.' ,
}
{
        "status": "error",
        "send_id": "********************************",
        "code": 1217,
        "msg": "API Gateway Error:身份證格式錯(cuò)誤(*****)"
}

API請(qǐng)求成功
{
        "status": "success",
        "send_id": "********************************",
        "result": {
                //true 一致   false 不一致
                "identical": true,
                //01 一致       02 不一致
                "status": "01",
                //運(yùn)營(yíng)商編碼   1中國(guó)移動(dòng)    2中國(guó)聯(lián)通   3中國(guó)電信  0查詢失敗
                "ope_type": 2,
                //運(yùn)營(yíng)商中文名稱(chēng)
                "provider": "中國(guó)聯(lián)通",
                //返回結(jié)果描述
                "msg": "一致",
        }
}
identical和status 參數(shù)意義相同

//認(rèn)證不一致
{
        "status": "success",
        "send_id": "********************************",
        "result": {
                "identical": false,
                "status": "02",
                "ope_type": "2",
                "provider": "中國(guó)聯(lián)通"
                "msg": "認(rèn)證不一致",
        }
}


錯(cuò)誤代碼


參閱 API 錯(cuò)誤代碼