gboudreau / nissan-connect-php

Use the Nissan Connect (was Carwings) API using a simple PHP class.
GNU General Public License v3.0
38 stars 17 forks source link

does not work since mid-December 2018 .... #23

Closed jbltpcblt closed 5 years ago

joeshaw commented 5 years ago

Looks like the base URL has changed again. See https://github.com/jdhorne/pycarwings2/issues/35

nricklin commented 5 years ago

The new URL works for me, however things aren't fully working. When I make an async request, receive a resultkey, then try to use the resultkey on a subsequent request, the results never come.

Not sure if this is related to the API change, or perhaps something on my end.

joeshaw commented 5 years ago

Yes, it looks like there's a larger API change here. Any request after the first one after logging in fails with a 401 error. It looks like there might be extra state that needs to be sent along on each request.

Unfortunately I am in the US, which uses a totally separate API, so I cannot sniff the traffic. If someone is in Europe and can use mitmproxy to capture a couple of flows from the official app, that'd be very helpful for fixing this.

nricklin commented 5 years ago

What's the totally separate API for the us? I'm in the US too. Currently using this URL to access the API (https://github.com/nricklin/leafpy/commit/9989a1531fe6620085d879d4e333361ad8aee095) with success, except for the above-mentioned async issue.

joeshaw commented 5 years ago

@nricklin Some links for background: https://github.com/joeshaw/carwings/issues/3

As far as I know, none of the popular carwings/nissan connect implementations implement the new API, because it only works in the US. The other API works in the US and internationally.

cedric222 commented 5 years ago

Unfortunately even the official nissan iphone apps don't work in Europe... I cannot sniff the traffic !!! ( startClimateControl contine to work with nissan-connect-php and the official apps, but not the getStatus )

gboudreau commented 5 years ago

Try the latest version; I merged #24 which could resolve this issue.

cedric222 commented 5 years ago

Yes, it's ok for france, with the mr #24

THANKS !