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

Time for pycarwings3? #30

Open
BenWoodford opened this issue Jan 22, 2018 · 7 comments

Comments

Projects
None yet
3 participants
@BenWoodford
Copy link

commented Jan 22, 2018

Seems like the best place to put this. They've got a totally new, RESTful API that supports multiple vehicles, so now we need a new library to handle it. I don't think revising the existing library is terribly sensible as basically everything has changed, so I'd like to start the ball rolling on a pycarwings3 for the new API before they deprecate the old one.

https://gist.github.com/BenWoodford/141ca350445e994e69a70aabfb6db942

@xibriz

This comment has been minimized.

Copy link
Contributor

commented Jan 22, 2018

I'm in.

@BenWoodford

This comment has been minimized.

Copy link
Author

commented Jan 23, 2018

I've jotted down a lot of the API calls, but as I'm in the UK I can't actually test the API at all because my account doesn't work.

We need a US-based Leaf owner to start throwing requests at it. I can provide the APK source so that anyone can see what payloads are required.

@xibriz

This comment has been minimized.

Copy link
Contributor

commented Jan 23, 2018

Does it not work on the European models?

@BenWoodford

This comment has been minimized.

Copy link
Author

commented Jan 23, 2018

We don't have endpoints for the EU yet, as the NA app is hardcoded for that region. The app isn't out for a while over here

@BenWoodford

This comment has been minimized.

Copy link
Author

commented Feb 1, 2018

EU app hasn't actually been upgraded to a new API, so I can't contribute to development unfortunately.

@jdhorne

This comment has been minimized.

Copy link
Owner

commented Feb 2, 2018

Well that's fascinating. Seems like Nissan wants to replace their API every couple years. Can't say I wouldn't celebrate something more standardized.

Did you get this info by your own research, or by (gasp) official documentation?

@BenWoodford

This comment has been minimized.

Copy link
Author

commented Feb 5, 2018

Nah, I decompiled the app.

They're only changing it in the US though - we still have the old API. I'm just gonna build everything off the old one for now as hopefully they won't remove US support from the old one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.