jsgoecke / tesla

Provides a wrapper around the API to easily query and command a Telsa car. As of now this has been used with a Model S, a Model X, and a Model 3.
MIT License
325 stars 73 forks source link

Optionally provide a custom http.Client #21

Open nealey opened 6 years ago

nealey commented 6 years ago

I added this so I could get out of Google Compute Engine, but this could also be helpful for people behind proxies or using other unusual configurations. This simply adds a new auth.NewClientWithHttpClient method, everything else remains the same.

andig commented 4 years ago

Should probably not accept a client struct but rather an interface to allow testability.

andig commented 3 years ago

We've implemented this in https://github.com/bogosj/tesla