View Full Version : trackbase ET Servers API
The example http://api.trackbase.net/servers/et.php?sid=45261&rcv=serverinfo&order-by=xp&order=desc&limit=1&start=1
given here: http://api.trackbase.net/servers/
just returns "{"code":200,"message":"","error":"Please supply more information.","errorcode":1,"results":[],"count":0}"
Am i missing something?
I admit, it's not that easy to understand. But let me explain:
To make ANY api request you'd need to be registered as a developer. Therefore head over to http://developers.trackbase.net/ and register (http://developers.trackbase.net/account/signup). After you activated your account, you'd need to create an app. When that's done you can access all of our APIs. The error 1 "Please supply more information" usually is the result because you also need to add following parameters to your request, which you - by the way - need to do for ANY request you want to make (in order to identify yourself to TrackBase and the API):
- application identification number (supply as 'app' and add the value of your app to it)
- relation token (supply as 'token' and add the value of your app to it)
- application authentication key (supply as '_aak' and add the value of your app to it)
Source: http://developers.trackbase.net/how-to-use
Hopefully I could help you further. :)
/JoNny
thx for reply :)
but I actually did that too, same result:
http://api.trackbase.net/servers/et.php?sid=45261&rcv=serverinfo&order-by=xp&order=desc&limit=1&start=1&app=21&token=RELATIONTOKEN&_akk=AKK
The most likely reason why you are still running into this error is because you may be trying to access our API through your personal computer or basically any other source than you gave in your server url (stored with the app).
We only allow API calls from the server that can be reached with that URL.
So my suggestion is to upload the script (or if not present yet, create one and use something like curl to get the source code (json return)) to the server you supplied and access that script so it will be run.
Tell me if this fixes your issue, or feel free to pm me and give me your skype id, so we can clear this out in a real time chat with the option to share your screen. :)
Regards,
/JoNny
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.