-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support new Tesla-API authentication #3
Comments
Hi, is there going to be an update here? |
See workaround Fork |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was asked (by family) to check whether I could update this program to use the new authentication API as documented here:
However, I currently do not have the required time (I, for example, do not have experience with Perl nor a Tesla account to test with).
My findings are below:
The tesla-api documentation does look like it is sufficiently complete.
In addition, the repo provides an implementation of the API using Ruby:
A diff with the before/after of the authentication implementation can be seen here: https://github.com/timdorr/tesla-api/compare/75e79d34fdbfbfd4ef5978ae45e6bbef96ac4ed5...master?diff=split#
The relevant file is
lib/tesla_api/client.rb
.Observed changes (and rough commentary based on a first glance):
refresh_access_token
:exchange_sso_access_token
at the endlogin!
exchange_sso_access_token
at the endexchange_sso_access_token
The main job seems to be the parsing/scraping of the HTTP results.
The text was updated successfully, but these errors were encountered: