<?php
require_once 'curl.func.php';
$appkey = 'your_appkey_here';//你的appkey
$carid = 2571;//车ID
$url = "https://api.jisuapi.com/car/detail?carid=$carid&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['id'].' '.$result['name'].' '.$result['initial'].' '.$result['parentid'].' '.$result['logo'].' '.$result['price'].' '.$result['yeartype'].' '.$result['productionstate'].' '.$result['salestate'].' '.$result['sizetype'].' '.$result['depth'].'
';
echo '基本信息:
';
$basic = $result['basic'];
echo $basic['price'].' '.$basic['saleprice'].' '.$basic['warrantypolicy'].' '.$basic['vechiletax'].' '.$basic['displacement'].' '.$basic['gearbox'].' '.$basic['comfuelconsumption'].' '.$basic['userfuelconsumption'].' '.$basic['officialaccelerationtime100'].' '.$basic['testaccelerationtime100'].' '.$basic['maxspeed'].' '.$basic['seatnum'].'
';
echo '车体:
';
$body = $result['body'];
echo $body['color'].' '.$body['len'].' '.$body['width'].' '.$body['height'].' '.$body['wheelbase'].' '.$body['fronttrack'].' '.$body['reartrack'].' '.$body['weight'].' '.$body['fullweight'].' '.$body['mingroundclearance'].' '.$body['approachangle'].' '.$body['departureangle'].' '.$body['luggagevolume'].' '.$body['luggagemode'].' '.$body['luggageopenmode'].' '.$body['inductionluggage'].' '.$body['doornum'].' '.$body['tooftype'].' '.$body['hoodtype'].' '.$body['roofluggagerack'].' '.$body['sportpackage'].'
';
echo '发动机:
';
$engine = $result['engine'];
echo $engine['position'].' '.$engine['model'].' '.$engine['displacement'].' '.$engine['displacementml'].' '.$engine['intakeform'].' '.$engine['cylinderarrangetype'].' '.$engine['cylindernum'].' '.$engine['valvetrain'].' '.$engine['valvestructure'].' '.$engine['compressionratio'].' '.$engine['bore'].' '.$engine['stroke'].' '.$engine['maxhorsepower'].' '.$engine['maxpower'].' '.$engine['maxpowerspeed'].' '.$engine['maxtorque'].' '.$engine['maxtorquespeed'].' '.$engine['fueltype'].' '.$engine['fuelgrade'].' '.$engine['fuelmethod'].' '.$engine['fueltankcapacity'].' '.$engine['cylinderheadmaterial'].' '.$engine['cylinderbodymaterial'].' '.$engine['environmentalstandards'].' '.$engine['startstopsystem'].'
';
echo '变速箱:
';
$gearbox = $result['gearbox'];
echo $gearbox['gearbox'].' '.$gearbox['shiftpaddles'].'
';
echo '底盘制动:
';
$chassisbrake = $result['chassisbrake'];
echo $chassisbrake['bodystructure'].' '.$chassisbrake['powersteering'].' '.$chassisbrake['frontbraketype'].' '.$chassisbrake['rearbraketype'].' '.$chassisbrake['parkingbraketype'].' '.$chassisbrake['drivemode'].' '.$chassisbrake['airsuspension'].' '.$chassisbrake['adjustablesuspension'].' '.$chassisbrake['frontsuspensiontype'].' '.$chassisbrake['rearsuspensiontype'].' '.$chassisbrake['centerdifferentiallock'].'
';
echo '安全配置:
';
$safe = $result['safe'];
echo $safe['airbagdrivingposition'].' '.$safe['airbagfrontpassenger'].' '.$safe['airbagfrontside'].' '.$safe['airbagfronthead'].' '.$safe['airbagknee'].' '.$safe['airbagrearside'].' '.$safe['airbagrearhead'].' '.$safe['safetybeltprompt'].' '.$safe['safetybeltlimiting'].' '.$safe['safetybeltpretightening'].' '.$safe['frontsafetybeltadjustment'].' '.$safe['rearsafetybelt'].' '.$safe['tirepressuremonitoring'].' '.$safe['zeropressurecontinued'].' '.$safe['centrallocking'].' '.$safe['childlock'].' '.$safe['remotekey'].' '.$safe['keylessentry'].' '.$safe['keylessstart'].' '.$safe['engineantitheft'].'
';
echo '车轮:
';
$wheel = $result['wheel'];
echo $wheel['wheel'].' '.$wheel['fronttiresize'].' '.$wheel['reartiresize'].' '.$wheel['sparetiretype'].' '.$wheel['hubmaterial'].'
';
echo '行车辅助:
';
$drivingauxiliary = $result['drivingauxiliary'];
echo $drivingauxiliary['abs'].' '.$drivingauxiliary['ebd'].' '.$drivingauxiliary['brakeassist'].' '.$drivingauxiliary['tractioncontrol'].' '.$drivingauxiliary['esp'].' '.$drivingauxiliary['eps'].' '.$drivingauxiliary['automaticparking'].' '.$drivingauxiliary['hillstartassist'].' '.$drivingauxiliary['hilldescent'].' '.$drivingauxiliary['frontparkingradar'].' '.$drivingauxiliary['reversingradar'].' '.$drivingauxiliary['reverseimage'].' '.$drivingauxiliary['panoramiccamera'].' '.$drivingauxiliary['cruisecontrol'].' '.$drivingauxiliary['adaptivecruise'].' '.$drivingauxiliary['gps'].' '.$drivingauxiliary['automaticparkingintoplace'].' '.$drivingauxiliary['ldws'].' '.$drivingauxiliary['activebraking'].' '.$drivingauxiliary['integralactivesteering'].' '.$drivingauxiliary['nightvisionsystem'].' '.$drivingauxiliary['blindspotdetection'].'
';
echo '门窗后视镜:
';
$doormirror = $result['doormirror'];
echo $doormirror['openstyle'].' '.$doormirror['electricwindow'].' '.$doormirror['uvinterceptingglass'].' '.$doormirror['privacyglass'].' '.$doormirror['antipinchwindow'].' '.$doormirror['skylightopeningmode'].' '.$doormirror['skylightstype'].' '.$doormirror['rearwindowsunshade'].' '.$doormirror['rearsidesunshade'].' '.$doormirror['rearwiper'].' '.$doormirror['sensingwiper'].' '.$doormirror['electricpulldoor'].' '.$doormirror['rearmirrorwithturnlamp'].' '.$doormirror['externalmirrormemory'].' '.$doormirror['externalmirrorheating'].' '.$doormirror['externalmirrorfolding'].' '.$doormirror['externalmirroradjustment'].' '.$doormirror['rearviewmirrorantiglare'].' '.$doormirror['sunvisormirror'].'
';
echo '灯光:
';
$light = $result['light'];
echo $light['light'].' '.$light['headlighttype'].' '.$light['optionalheadlighttype'].' '.$light['headlightautomaticopen'].' '.$light['headlightautomaticclean'].' '.$light['headlightdelayoff'].' '.$light['headlightdynamicsteering'].' '.$light['headlightilluminationadjustment'].' '.$light['headlightdimming'].' '.$light['frontfoglight'].' '.$light['readinglight'].' '.$light['interiorairlight'].' '.$light['daytimerunninglight'].' '.$light['ledtaillight'].' '.$light['lightsteeringassist'].'
';
echo '内部配置:
';
$internalconfig = $result['internalconfig'];
echo $internalconfig['steeringwheelbeforeadjustment'].' '.$internalconfig['steeringwheelupadjustment'].' '.$internalconfig['steeringwheeladjustmentmode'].' '.$internalconfig['steeringwheelmemory'].' '.$internalconfig['steeringwheelmaterial'].' '.$internalconfig['steeringwheelmultifunction'].' '.$internalconfig['steeringwheelheating'].' '.$internalconfig['computerscreen'].' '.$internalconfig['huddisplay'].' '.$internalconfig['interiorcolor'].' '.$internalconfig['rearcupholder'].' '.$internalconfig['supplyvoltage'].'
';
echo '座椅:
';
$seat = $result['seat'];
echo $seat['sportseat'].' '.$seat['seatmaterial'].' '.$seat['seatheightadjustment'].' '.$seat['driverseatadjustmentmode'].' '.$seat['auxiliaryseatadjustmentmode'].' '.$seat['driverseatlumbarsupportadjustment'].' '.$seat['driverseatshouldersupportadjustment'].' '.$seat['frontseatheadrestadjustment'].' '.$seat['rearseatadjustmentmode'].' '.$seat['rearseatreclineproportion'].' '.$seat['rearseatangleadjustment'].' '.$seat['frontseatcenterarmrest'].' '.$seat['rearseatcenterarmrest'].' '.$seat['seatventilation'].' '.$seat['seatheating'].' '.$seat['seatmassage'].' '.$seat['electricseatmemory'].' '.$seat['childseatfixdevice'].' '.$seat['thirdrowseat'].'
';
echo '娱乐通讯:
';
$entcom = $result['entcom'];
echo $entcom['locationservice'].' '.$entcom['bluetooth'].' '.$entcom['externalaudiointerface'].' '.$entcom['builtinharddisk'].' '.$entcom['cartv'].' '.$entcom['speakernum'].' '.$entcom['audiobrand'].' '.$entcom['dvd'].' '.$entcom['cd'].' '.$entcom['consolelcdscreen'].' '.$entcom['rearlcdscreen'].'
';
echo '空调冰箱:
';
$aircondrefrigerator = $result['aircondrefrigerator'];
echo $aircondrefrigerator['airconditioningcontrolmode'].' '.$aircondrefrigerator['tempzonecontrol'].' '.$aircondrefrigerator['rearairconditioning'].' '.$aircondrefrigerator['reardischargeoutlet'].' '.$aircondrefrigerator['airconditioning'].' '.$aircondrefrigerator['airpurifyingdevice'].' '.$aircondrefrigerator['carrefrigerator'].'
';
echo '实际测试:
';
$actualtest = $result['actualtest'];
echo $actualtest['accelerationtime100'].' '.$actualtest['brakingdistance'].'
';