// 接口類型:互億無線企業(yè)備案網(wǎng)站核查
// 賬戶注冊:https://user.ihuyi.com/register.html
// 注意事項:
// DEMO僅作參考
header("Content-type:text/html; charset=UTF-8");
function Post($curlPost,$url){
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_NOBODY, true);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $curlPost);
$return_str = curl_exec($curl);
curl_close($curl);
return $return_str;
}
$app = "entweb";
$account = "IC****8";
$password = "f8*****05b8";
$ent_name = "上海思銳信息技術(shù)有限公司";
$ent_code = "";
$time = time();
$password = md5($account.$password.$app.$ent_name.$ent_code.$time);
$target = "https://api.ihuyi.com/idcard/entweb/Submit.json";
$post_data = "account=".$account."&password=".$password."&ent_name=".$ent_name."&ent_code=".$ent_code."&time=".$time;
// print_r($password);
//密碼可以使用明文密碼或使用32位MD5加密
$res = Post($post_data, $target);
$res_json = json_decode($res,true);
print_r($res_json);
if($res_json["code"]==2){
echo "提交成功";
}
if($res_json["result"]["status"]==2){
echo "已獲得結(jié)果";
}
驗證碼已發(fā)送到您的手機,請查收!
輸入驗證碼后,點擊“開通體驗賬戶”按鈕可立即開通體驗賬戶。