Avatar

MyGeotab PHP API Client

0

good afternoon,

I'm trying to make a authentication to the geotab server through php using https://github.com/Geotab/mygeotab-php (server ip is my.geotab.com), but the api requesting the name of the database, when I make the same connection by .net or javascript only asks me for username and password and enters correctly.

My question is, why in php requests to enter additionally the name of the database and not only the user and password?, or if you have an example of how to make this connection by php, if I'm doing something wrong,

PD: in the documentation it says that the database parameter is sent null but the authentication does not work.

Wpaz

Please sign in to leave a comment.

3 comments

0
Avatar

Hi,

I tried the latest v1.1.0 and was able to:

```

$api = new Geotab\API("sampleusername", "samplepassword");

$api->authenticate();

var_dump($api->getCredentials());

```

It worked for me. Tried providing `null` for database (third parameter) but `my.geotab.com` for server, and that worked as well.

Could you be having an authentication issue (e.g. invalid password)?

Mike Murkovic 0 votes
0
Avatar
 
the api returns to me the following message:
```
Exception has occurred.
Geotab\MyGeotabException: Incorrect login credentials
```
the string message is 
Cannot authenticate smc**** on my.geotab.com/
 
but by javascript if it works for me with send only username and password.
Wpaz 0 votes