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

Nissan changed api again #28

Closed reulnl closed 5 years ago

reulnl commented 5 years ago

It looks like Nissan changed their API (or API URL) again. Within the European Nissan EV app they are now stating that a new version of the app is available and the old app has stopped working by July 29th.

Does anyone know the new API configuration so this PHP class can be updated as well?

gboudreau commented 5 years ago

Old API seems to still work fine for me in Canada. (NissanConnectEV official app on Android still works too.) So I guess this would be an issue for EU users only..?

Daxziz commented 5 years ago

I get 404 when trying with the 3rd party applications I've got. The API has indeed been changed. All I can see is, that they're still talking to the same domain, but I can't get the actual URLs that's being used.

I should add, that I'm from Denmark (EU)

SDeath667 commented 5 years ago

Here you can see the new endpoints for EU: https://gitlab.com/tobiaswkjeldsen/dartcarwings/issues/15

gboudreau commented 5 years ago

The changes implemented in dartcarwings don't work for me. Request to InitialApp_v2.php works, but request to UserLoginRequest.php fails with:

{"status":"-2010","message":"INVALID PARAMS","resultKey":""}
gboudreau commented 5 years ago

I pushed the change in the master branch; try it yourselves, see if it works. In Canada, those gdcportalgw.its-mo.com URLs stopped working a while ago. I'm myself using the new-api branch, which uses a completely different API, but I guess it works only for Americans accounts.

howartp84 commented 5 years ago

Guillaime,

I’m getting the -2010 error as well.

Mine is a UK 2019 car, which uses a different app and api; I suspect that the -2010 error is that we’re using wrong api for that account.

SDeath667 commented 5 years ago

I updated and all is working again on my 2014 Leaf in the EU. Thanks!

reulnl commented 5 years ago

Also for me this updated API is working, thanks!