Skip to content

v2.0.0

Compare
Choose a tag to compare
@timdorr timdorr released this 23 Sep 17:47
· 414 commits to master since this release
5b9928e

Changes

  • Revamped TeslaApi::Client
    • .new now uses keyword arguments: email:, access_token:, access_token_expires_at:, refresh_token:, client_id:, and client_secret:. Note: access_token_expires_at should be a DateTime.
    • Methods .token=, .expires_in=, .created_at= have been removed. You can set these when creating the client.
    • Added a refresh_access_token method to obtain a new access token using a refresh token. Note: Tesla invalidates the previous refresh token when obtaining the new access token.