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
// Copyright (C) 2017, Ward Mundy & Associates LLC with MIT license
$response =queryTeslaAPI($TOKEN, "api/1/vehicles/".$ID."/data_request/vehicle_state");
Where the variable $ID comes from?
I want to fill $TOKEN and $ID manually and run it.
Thank you in advance,