Avatar

SDK frustration

0

Nothing about the SDK works for me.

Installed both full SDK and PHP version with composer. Tested both, got nowhere 
1) Given what I'm reading (or not finding) I cant tell if the default user name and PW authorization and server and DB names in the test are correct.


2) I make no contact with the server; I get told "network error". My network connections are fine.

Please make docs and test instructions more complete and robust. I have decades of PHP/Net/Java/JS  experience - this has been a waste of hours.

Charles Martel

Please sign in to leave a comment.

5 comments

0
Avatar

Hi Charles,

Which "test" are you attempting? You need to have a database registered and have user to connect with to that database with. If you're using `sample.php` and not defining any of the "MYGEOTAB_USERNAME", "MYGEOTAB_PASSWORD", etc constants - then it won't actually work.

Mike Murkovic 0 votes
0
Avatar

Mike:


  Thanks for the reply.

  Do I understand correctly then that:
1) I need a database of my own (there's no public "test" DB" that I can use) and
2) in order to have such a DB I need to install a GeoTab device in a car?



Charles


Charles Martel 0 votes
0
Avatar

Mike:

Still cant log in.

We're working with 

http://127.0.0.1/geotab/sdk-master/src/software/js-samples/getCount.html

We now have a test account and a device installed in a vehicle. If I understand your docs  and the prompts in the test code HTML

1) for the server name we are using this path https://my6XX.geotab.com/XXXXX/

2) for the DB we are using the name of the firm, XXXXX

Email and password are clear enough. We get a general error back

I've debugged as far as 
callXHR = function (method, params, callbackSuccess, callbackError)  but cant see the failure and have run out of time tonight.

I can also tell you we are using this version of your code.
* @version 2014-07-21
* @description The Geotab JS API library.

Help!

Charles Martel 0 votes
0
Avatar

1) for the server name we are using this path https://my6XX.geotab.com/XXXXX/

Think you could be having an issue with the database name (XXXXX) shouldn't be in the "server" argument. Haven't actually tried that before. Try taking that out and just using: "https://my6XX.geotab.com" or even "my6XX.geotab.com" without specifying the HTTPS scheme.

We get a general error back

What API call are you making, and what is the general error you're seeing?

* @description The Geotab JS API library.

Are you using JavaScript? Earlier you mentioned about the PHP SDK.

Mike Murkovic 0 votes
0
Avatar

Progress, but further questions.

Using your kind suggestions on formatting we've been able to run your test code,and we see the graphs and data.

We are now trying to use the test URLS as shown in this file: "MyGeoTable-URLS.md - permalink: /software/guides/mygeotab-urls/
title: Using MyGeotab URLs"  

Sorry to report these are not working for us. It would help to have a list of acceptable parameters and where to find them

The most simple test I could make out of the suggestions was based on https://<serverName>/<databaseName>/geotab/checkmate/ui/<page>,<parameters>`

So we tried:

https://myXXX.geotab.com/XXXX/geotab/checkmate/ui/1  but sadly this is not working.

Any help would be great - 

Charles Martel 0 votes