Hello Developers!
today we launched a new function for JSON (JavaScript Object Noation) output.
This is at this moment only available for SI Classic.
The following features can be used:
- a battle report
- a spy report
- on a galaxy view (map)
- the intergalactic planet overview
All Json Objects contain a "info" Object like:
JavaScript
{
"info": {
"si": "classic",
"v": 1,
"user": {
"userID": 1,
"nickname": "Dschibait"
},
"type": "planet-overview",
"universe": {
"id": 44
}
}
}
Display More
here you can see the:
- the spaceinvasion version
- the version of the JSON API
- the user information (user ID and nickname) of the exported json
- the universe where this is coming from
- the type of this json object structure
Universe IDs:
RETRO: 31
GeNeSIS²: 40
Ecowars: 41
Nexus: 44
in the following posts i will show you the different types of JSON output.
regards
Dschibait