本文为您提供了PHP语言版本的提交查询接口对接DEMO示例
<?php
header("Content-type:text/html; charset=UTF-8");
//请检查环境是否 开启 curl init。
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);
curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
$return_str = curl_exec($curl);
curl_close($curl);
return $return_str;
}
//短信接口地址
$target = "https://api.ihuyi.com/veh/entcap/Submit.json";
$post_data = array(
'account' => 'xxxxxxxx', //APIID(用户中心【认证核验】-【车辆与道路运输信息验证】-【产品总览】查看)
'password' => 'xxxxxxxxx', //1、APIKEY(用户中心【认证核验】-【车辆与道路运输信息验证】-【产品总览】查看)
2、动态密码(生成动态密码方式请看该文档末尾的说明)
'ent_name' => '上海xx车辆公司', //企业名称
'reg_no' => '12345678', //经营许可证号
'ent_code' => '913******N', //统一社会信用代码(reg_no、ent_code二选一传递)
'time' => '1623643787', //Unix时间戳(10位整型数字,当使用动态密码方式时为必填)
);
$res = Post($post_data, $target);
print_r($res);
国内专业互联网团队
21年行业经验
7x24小时售后支持
丰富的行业经验
Copyright © 2004-2025 上海思锐信息技术有限公司 All rights reserved. 沪ICP备07035915号-15 电信增值业务许可证:B2-20160082
服务热线:
4008 808 898
服务热线(工作时间):
4008 808 898
业务咨询(非工作时间):
售后咨询(非工作时间):