首页 汽车配件EPC查询 汽车配件EPC查询示例代码 VIN查询[PHP]

VIN查询示例代码PHP

作者: 阅读数:1136 上传时间:2025-03-28

VIN查询

<?php

require_once 'curl.func.php';

$appkey = 'your_appkey_here';//你的appkey
$vin = 'LE4HG5EB3AL999908';
$url = "https://api.jisuapi.com/epc/vin?vin=$vin&appkey=$appkey";
$result = curlOpen($url, ['ssl'=>true]);

$jsonarr = json_decode($result, true);
//exit(var_dump($jsonarr));

if($jsonarr['status'] != 0)
{
    echo $jsonarr['msg'];
    exit();
}

$result = $jsonarr['result'];

echo $result['name'].' '.$result['intername'].' '.$result['parentname'].'
'; echo $result['salecode'].' '.$result['market'].' '.$result['brand'].'
'; echo $result['bodytype'].' '.$result['enginemodel'].' '.$result['steertype'].'
'; echo $result['geartype'].' '.$result['startdate'].' '.$result['productiondate'].'
';