Thanks for the tip, I'm the guy who is helping Premiercolby with the task.init.php is not meant to be run on the command line, it's included into the other programs.
The problem is that only token.php and vehicle.php run OK from the code.
The rest return NULL.
For example, when I look at vehicle_state.php
#!/usr/bin/php -q
<?php
// Copyright (C) 2017, Ward Mundy & Associates LLC with MIT license
include("init.php");
init();
$response =queryTeslaAPI($TOKEN, "api/1/vehicles/".$ID."/data_request/vehicle_state");
var_export($response);
?>
Where the variable $ID comes from?
I want to fill $TOKEN and $ID manually and run it.
Thank you in advance,
Alex