<?php
//SOLICITUD DE TOKEN///////////////////////////////////////////////////////////
include('token.php');
$cod_car = trim($_GET['id_vehicle']);

$datos_coche = consultoDatosVehicle($bd_conn, $cod_car);
$idVehicle = $datos_coche["ID_COCHESNET"];
//CONSULTO LAS MARCAS DE LOS COCHES////////////////////////////////////////////
$url = 'https://api.carfactory.es/publishing/api/v3/Vehicles/' . $idVehicle;
$headers = array(
    'Authorization: Bearer ' . $token,
    'accept: application/json',
    'Content-Type: application/json'
);
$delete_vehicle = curlDelete($url,$headers);
$idVehicle = '';
updateIdVehicle($bd_conn, $idVehicle, $cod_car);
//RESPONSE////////////////////////////////////////////////////////////////////
$dataD = array ( 
    "code" => "Ok!",
    "result" => $delete_vehicle
);
$result= json_encode($dataD);  
print_r($result);
?>