第一步獲取支持的數(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"
}
]
}
返回:
其中token和website在下一步需要用到
{
"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ù)填上一步獲取到的type:SUBMIT_CAPTCHA