bogosj / tesla

Provides a wrapper around the API to easily query and command a Telsa car.
Other
22 stars 18 forks source link

fix(states): add endpoints required for location state #120

Open pitust opened 9 months ago

pitust commented 9 months ago

The tesla API updated, requiring the endpoints parameter in vehicle_data to return some types of information (like vehicle location). Add this parameter to the request so that the existing API continues to function.

andig commented 9 months ago

I don‘t know if thats required, but may be (Owners api). In Go, I‘d suggest to let the url Library do the escaping instead of writing escaped strings directly as it is error prone.

pitust commented 9 months ago

I don‘t know if thats required, but may be (Owners api).

It is required to get the location information (latitude, longitude) via the API.

In Go, I‘d suggest to let the url Library do the escaping instead of writing escaped strings directly as it is error prone.

Sure.