jdhorne / pycarwings2

Apache License 2.0
66 stars 66 forks source link

Time for pycarwings3? #30

Open BenWoodford opened 6 years ago

BenWoodford commented 6 years ago

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 commented 6 years ago

I'm in.

BenWoodford commented 6 years ago

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 commented 6 years ago

Does it not work on the European models?

BenWoodford commented 6 years ago

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 commented 6 years ago

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

jdhorne commented 6 years ago

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 commented 6 years ago

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.