This application will connect to the Tesla API, makes a request, and shows the response.
Please see https://tesla-api.timdorr.com/ for details on using the Tesla API.
In order to make a request, tesla-api needs an access token. This can be obtained in
several ways; please see https://tesla-api.timdorr.com/api-basics/authentication for details.
If you use teslamate, the access token can be obtained automatically from its
database; this is handled automatically if you provide the docker-compose file, or if
it is found in the current directory.
Sending data with a third argument does not work yet.
Usage examples:
tesla-api GET /api/1/users/metesla-api GET /api/1/vehiclestesla-api GET /api/1/productstesla-api GET /api/1/vehicles/{id}/vehicle_datatesla-api GET /api/1/vehicles/929653650881721/nearby_charging_sitestesla-api GET /api/1/vehicles/929653650881721/release_notestesla-api POST /api/1/vehicles/{id}/wake_uptesla-api POST /api/1/vehicles/{id}/command/honk_horntesla-api POST /api/1/vehicles/{id}/command/flash_lightstesla-api POST /api/1/vehicles/{id}/command/remote_start_drivetesla-api POST /api/1/vehicles/{id}/command/door_unlocktesla-api POST /api/1/vehicles/{id}/command/door_locktesla-api POST /api/1/vehicles/{id}/command/actuate_trunk '{"which": "rear"}tesla-api POST /api/1/vehicles/{id}/command/window_control '{"command": "close", "lat": 0, "lon": 0}