MP3: API/SDK Version 5.x
Posted: 11 Jul 2012, 13:23
Hi,
A new version of the API and SDK has just been released.
You can download it here.
API Changes
Main changes are :
The function are the same as in previous version.
A new version of the API and SDK has just been released.
You can download it here.
API Changes
- /dedicated/ is moved to /servers/
- /servers/:login/favorited/ has been added to seen how many times a server has been favorited
- /server/:login/players/ get players currently on the server
- GET /servers/ get a list of servers it can be filtered with title, environment, gameMode, etc.
- In object returned, description, scriptName, scriptVersion and scriptTeam has been added.
- NEW: /teams/
- /teams/:id/ : return info about the team (name, description)
- /teams/:id/players/ : return players of the team
- /teams/:id/admins/ : return admins of the team
- NEW : /players/:login/teams
- NEW: /zone/id/:id/population/ : number of players in the zone
- Storm rankings are available with the same architecture as Canyon’s
- /storm/rankings/multiplayer/player/:login/
- /storm/rankings/multiplayer/zone/?offset=X&length=Y
- /storm/rankings/multiplayer/zone/%s/?offset=X&length=Y
- Title’s ranking are available with the following architecture.
- /titles/rankings/multiplayer/player/%s/?title=ID_STRING
- /titles/rankings/multiplayer/zone/?title=ID_STRING&offset=X&length=Y
- /titles/rankings/multiplayer/zone/%s/?title=ID_STRING&offset=X&length=Y
- New Trust Circle routes
- /trust/CIRCLE_NAME/karma/PLAYER_LOGIN/ : Get how many times a player has been blacklisted and whitelisted within a circle
- /trust/%s/black/ OR /trust/black/ : Get your own blacklist or a shared one
- /trust/%s/white/ OR /trust/white/ : Get your own whitelist or a shared one
- POST /trust/black/ : Blacklist a player
- POST /trust/unblack/ : Unblacklist a player
- POST /trust/white/ : Whitelist a player
- POST /trust/unwhite/ : Unwhitelist a player
- NEW GET /report-abuse/list/:login/ get report abuses on this server login
- NEW: /player/teams/
- NEW: /player/titles/owned/
- NEW: /player/titles/installed/
- NEW: /player/dedicated/:serverLogin/reportAbuse/
- SMStorm
- TMCanyon
- SMStormJoust@nadeolabs
- SMStormElite@nadeolabs
Main changes are :
- Maniaplanet\WebServices\Dedicated.php is moved to Maniaplanet\WebServices\Servers.php
- NEW getReportAbuses($login): return the list of report abuse created on the given login
- NEW getFilteredList($filters): return the list of server filtered by the associative array $filters
- NEW: getFavoritedCount($login) return the number of people who has this server in favorites
- Maniaplanet\WebServices\Zones.php
- NEW : getPopulation($id) return the population (in number of players) of a zone
- NEW: Maniaplanet\WebServices\Teams.php
- get($id): return infos about the team (name, description)
- getContracts($id): list of players of the team
- getAdmins($id): list of admins of the team
- Maniaplanet\WebServices\Players.php
- NEW: getContracts($login): return the teams’s contract
- Maniaplanet\WebServices\Trust.php
- getKarma($circle, $player) : Get how many times a player has been blacklisted and whitelisted within a circle
- getBlackList($circle = null) : Get your own blacklist or a shared one
- getWhiteList($circle = null) : Get your own whitelist or a shared one
- blackList($player) : Blacklist a player
- whiteList($player) : WhiteList a player
- unBlackList($player) : unBlacklist a player
- unWhiteList($player) : unWhiteList a player
The function are the same as in previous version.
- Maniaplanet\WebServices\Rankings\Canyon.php
- getMultiplayerPlayer($login)
- getMultiplayerWorld($offset, $length)
- getSoloWorld($login)
- …
- Maniaplanet\WebServices\Rankings\Storm.php
- Only multiplayer function are available
- NEW: getTeams() return the player’s list of team’s contract (scope teams)
- NEW: getOwnedTitles() return the titles owned by the player (scope titles)
- NEW: getInstalledTitles() return the titles installed by the player (scope titles)
- NEW: getReportAbuses($serverLogin) return the list of report abuses created on the server