<?php
//SOLICITUD DE TOKEN///////////////////////////////////////////////////////////
include('token.php');
//CONSULTO LAS MARCAS DE LOS COCHES////////////////////////////////////////////
$url = 'https://api.carfactory.es/publishing/api/v3/Vehicles';
$headers = array(
    'Authorization: Bearer ' . $token,
    'accept: application/json' 
);
$get_stock = curlGetData($url,$headers);
//RESPONSE////////////////////////////////////////////////////////////////////
$dataD = array ( 
    "code" => "Ok!",
    "result" => $get_stock
);
$result= json_encode($dataD);  
print_r($result);
?>