stephangroen / tesla-php-client

A PHP client for easy integration of the Tesla API
MIT License
19 stars 8 forks source link

Added endpoint to return all data related to the state of selected vehicle #8

Closed Workman closed 5 years ago

Workman commented 5 years ago

Based on https://tesla-api.timdorr.com/vehicle/state/data.

This is a rollup of all the data_request endpoints. Really handy if you want a single call.

corsair commented 5 years ago

@Workman The allData() function currently uses the Tesla API route "/data", which returns the same data and structure as "/vehicle_data" as noted on the aforementioned documentation.

Updating the allData() function instead would ensure that it always works in the case "/data" is deprecated, since it is considered legacy now. What are your thoughts on this?

Workman commented 5 years ago

Hey @corsair!

Good call. I'll update it shortly. Thanks!