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

"status":"-2010","message":"INVALID PARAMS" #12

Closed gerfur1 closed 7 years ago

gerfur1 commented 7 years ago

I have a Problem with the User-Login: An error occurred: Request for 'UserLoginRequest.php' failed. Response received: {"status":"-2010","message":"INVALID PARAMS"} I have a Modelyear 2014 Leaf made for Austria. Maybe there is a general Issue?

gboudreau commented 7 years ago

Works for me. You sure you specified the NissanConnect::COUNTRY_EU country (4th param of the constructor)?

eg.

require_once 'NissanConnect.class.php';
$nissanConnect = new NissanConnect($username, $password, $tz, NissanConnect::COUNTRY_EU);
$nissanConnect->debug = TRUE;
$result = $nissanConnect->getStatus();
var_dump($result);
gerfur1 commented 7 years ago

I found out why, i used Mail-Adress (as i saw in the Example) instead of my username... BTW, ther is also an alternative Base-Url: https://gdcportalgw.its-mo.com/gworchest_160803EC/gdc/