<?php
///////////////////////////////////////////////////////////////////////////////
define('USERNAME', 'demodealerbest2@apicarfactory.es');
define('PASSWORD', '123Abc09L2eR');
//SOLICITUD DE TOKEN//////////////////////////////////////////////////////////
$url = 'https://api.carfactory.es/publishing/api/v3/Login';
$json_post_fields = '{
    "username": "'.USERNAME.'",
    "password": "'.PASSWORD.'",
}';
$headers = array(
    'Content-Type: application/json'
);
$token = curlPost($url,$json_post_fields,$headers);
?>