| 参数名称 | 类型 | 必填 | 说明 |
| creditCode | string | 是 | 统一信用代码或注册号 |
| companyName | string | 是 | 企业名称 |
| legalPerson | string | 是 | 法人名称 |
| idcard | string | 是 | 法人身份证号码 |
| 参数名称 | 类型 | 说明 | |
| Relation | array | 人企关系信息 | |
| CompanyInfo | array | 企业核验信息 |
require_once("curl.func.php");
$method = "POST";
$url = "https://open.6api.net/company_four/check";
$headers = NULL;
$params = array(
"appkey" => "yourappsecret",
"creditCode" => "参数1",
"companyName" => "参数2",
"legalPerson" => "参数3",
"idcard" => "参数4"
);
$result = api_curl($method, $url, $headers, $params);
if ($result) {
$body = json_decode($result["body"], TRUE);
$status_code = $body["status"];
if ($status_code == "200") {
var_dump($body["result"]);
}else
var_dump($body);
}else
echo "发送请求失败";