Open BenWoodford opened 6 years ago
I'm in.
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.
Does it not work on the European models?
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
EU app hasn't actually been upgraded to a new API, so I can't contribute to development unfortunately.
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?
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.
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