首页 VIN码查询车辆出厂信息 VIN码查询车辆出厂信息示例代码 车辆出厂信息(基础)[PHP]

车辆出厂信息(基础)示例代码[PHP]

作者: 阅读数:3906 上传时间:2025-01-07

车辆出厂信息(基础)

<?php
 
require_once 'curl.func.php';

$appkey = 'your_appkey_here';//你的appkey
$vin = '';
$engineno = '';
$url = "https://api.jisuapi.com/vinvecc/query?appkey=$appkey&vin=".$vin."&engineno=".$engineno;
$result = curlOpen($url, ['ssl'=>true]);
 
$jsonarr = json_decode($result, true);
//exit(var_dump($jsonarr));
 
if($jsonarr['status'] != 0)
{
    echo $jsonarr['msg'];
    exit();
}
 
$list = $jsonarr['result'];
foreach($list as $val)
{
    echo $val.'<br>';
}