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 72 forks source link

Allow custom http client #37

Closed andig closed 3 years ago

andig commented 3 years ago

Allow setting logger on client. I've simply added the client interface to the auth struct. No new methods.

All tests are passing:

--- PASS: TestVehiclesSpec (0.00s)
PASS
ok      github.com/jsgoecke/tesla       0.277s
?       github.com/jsgoecke/tesla/examples      [no test files]

Replaces https://github.com/jsgoecke/tesla/pull/21