Access any profile page by providing the username and API key (generated in the settings -> API) , e.g.
https://trackobot.com/profile/history.json?username=cool-ancient-tree-1337&token=fhyf238cv2eh879
Any profile page can be requested as JSON. Simply add .json at the end of the url (but before the query string which starts with ?), see example above.
Use the browser to see the JSON structure. JSONView is an excellent browser extension which shows JSON in a nice way.
You can upload results with POSTing to /profile/results.json (don't forget to add the username and API key at the end).
The body of the POST should look like this:
{
"result": {
"hero": "Shaman",
"opponent": "Warrior",
"mode": "ranked",
"coin": true,
"win": true
}
}You can include additional (optional) information, e.g.:
{
"result": {
"hero": "Shaman",
"opponent": "Warrior",
"mode": "ranked",
"coin": true,
"win": true,
"duration": 634,
"card_history": [
{
"card_id": "EX1_405",
"player": "opponent"
},
{
"card_id": "GAME_005",
"player": "me",
"turn": 3
}
]
}
}
dont understand what i need to do that could you explane more detailed ?