第一步获取支持的数据源列表 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
}
]
}
第二步提交申请表单获取回执信息 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": "输入动态密码",
"process_code": 10002,
"req_msg_tpl": {
"type": "SUBMIT_CAPTCHA",
"method": "AUTO"
},
"finish": false
}
}
第四步 POST请求
再调一次第三步的接口,但是把短信验证码captcha
填进去,然后type
参数填上一步获取到的type
:SUBMIT_CAPTCHA