Skip to content
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

Explicit Login #11

Merged
merged 5 commits into from Dec 23, 2014
Merged

Explicit Login #11

merged 5 commits into from Dec 23, 2014

Conversation

timdorr
Copy link
Owner

@timdorr timdorr commented Dec 23, 2014

Switches the API for the client from:

TeslaApi::Client.new(email, password, client_id, client_secret)

to:

client = TeslaApi::Client.new(email, client_id, client_secret)
client.login!(password)

This is necessary for re-use of tokens across instances of the client. Right now, I've got a process checking the API once a minute and I know that's creating spurious access tokens in their system.

Technically, this should be 2.0, but I'm tying this to Tesla's API and will reserve that for if they change things significantly.
timdorr added a commit that referenced this pull request Dec 23, 2014
@timdorr timdorr merged commit b96492c into master Dec 23, 2014
@timdorr timdorr deleted the explicit-login branch December 24, 2014 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant