Access to TireSYNC REST API using PHP and pure JavaScript