聚信立api手機(jī)運營商認(rèn)證步驟

第一步獲取支持的數(shù)據(jù)源列表 GET請求

https://www.juxinli.com/orgApi/rest/v2/orgs/HUOLD/datasources

傳參:無

返回如下:這個接口并沒有什么用

{
  "success": true,
  "data": [
    {
      "id": "df8ba6ec822e4984b3556d2a2cc2d5b8",
      "website": "jingdong",
      "name": "京東",
      "category": "e_business",
      "category_name": "電商",
      "create_time": {
        "year": 2014,
        "month": 6,
        "dayOfMonth": 7,
        "hourOfDay": 10,
        "minute": 49,
        "second": 14
      },
      "update_time": {
        "year": 2017,
        "month": 1,
        "dayOfMonth": 24,
        "hourOfDay": 6,
        "minute": 41,
        "second": 32
      },
      "offline_times": 6,
      "status": 1,
      "website_code": 4,
      "reset_pwd_method": 0,
      "sms_required": 2,
      "required_captcha_user_identified": 0,
      "reset_pwd_frozen_time": 0
    }
  ]
}

第二步提交申請表單獲取回執(zhí)信息 POST 請求

https://www.juxinli.com/orgApi/rest/v2/applications/HUOLD

傳參:

{
  "basic_info": {
    "name": "王淑嫻",
    "id_card_num": "320621199508274521",
    "cell_phone_num": "18852951275",
    "home_addr": "江蘇省蘇州市",
    "work_tel": "0513-86527787",
    "work_addr": "江蘇省南通市",
    "home_tel": "0513-86527787"
  },
  "contacts": [
    {
      "contact_tel": "13912244781",
      "contact_name": "邱一郎",
      "contact_type": "1"
    }
  ]
}

返回:
其中tokenwebsite在下一步需要用到

{
  "success": true,
  "data": {
    "token": "cbee442cdb2b4739b84642c4f1e4d343",
    "cell_phone_num": "18852951275",
    "datasource": {
      "id": "28d343e3464147e58521cc5b01ea4f03",
      "website": "chinamobilejs",
      "name": "江蘇移動",
      "category": "mobile",
      "category_name": "移動運營商",
      "create_time": {
        "year": 2014,
        "month": 6,
        "dayOfMonth": 7,
        "hourOfDay": 10,
        "minute": 49,
        "second": 14
      },
      "update_time": {
        "year": 2017,
        "month": 5,
        "dayOfMonth": 8,
        "hourOfDay": 15,
        "minute": 18,
        "second": 16
      },
      "offline_times": 4,
      "status": 1,
      "website_code": 12,
      "reset_pwd_method": 0,
      "sms_required": 1,
      "required_captcha_user_identified": 0,
      "reset_pwd_frozen_time": 0
    }
  }
}

第三步提交采集請求 POST 請求

https://www.juxinli.com/orgApi/rest/v2/messages/collect/req

傳參:

{
  "token": "cbee442cdb2b4739b84642c4f1e4d343",
  "account": "18852951275",
  "password": "112233",
  "website": "chinamobilejs"
}

返回:
其中type的值在下一步需要用到

{
  "success": true,
  "data": {
    "type": "CONTROL",
    "content": "輸入動態(tài)密碼",
    "process_code": 10002,
    "req_msg_tpl": {
      "type": "SUBMIT_CAPTCHA",
      "method": "AUTO"
    },
    "finish": false
  }
}

第四步 POST請求

再調(diào)一次第三步的接口,但是把短信驗證碼captcha填進(jìn)去,然后type參數(shù)填上一步獲取到的typeSUBMIT_CAPTCHA

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • Spring Cloud為開發(fā)人員提供了快速構(gòu)建分布式系統(tǒng)中一些常見模式的工具(例如配置管理,服務(wù)發(fā)現(xiàn),斷路器,智...
    卡卡羅2017閱讀 136,663評論 19 139
  • 一說到REST,我想大家的第一反應(yīng)就是“啊,就是那種前后臺通信方式?!钡窃谝笤敿?xì)講述它所提出的各個約束,以及如...
    時待吾閱讀 3,601評論 0 19
  • Android 自定義View的各種姿勢1 Activity的顯示之ViewRootImpl詳解 Activity...
    passiontim閱讀 179,234評論 25 708
  • API定義規(guī)范 本規(guī)范設(shè)計基于如下使用場景: 請求頻率不是非常高:如果產(chǎn)品的使用周期內(nèi)請求頻率非常高,建議使用雙通...
    有涯逐無涯閱讀 2,935評論 0 6
  • 在陰雨濛濛的早晨,我看到了遠(yuǎn)山層疊的墨色,從黑,灰到淺灰,疊疊層層,配合著低低矮矮白墻青瓦,宛如吳冠中筆下畫般意境...
    素言簡說閱讀 370評論 0 4

友情鏈接更多精彩內(nèi)容