You can now create you own server list on your website or manialink. With the latest SDK version you can get a list of server and use simple filters to get a list of server.
To do it use the method \Maniplanet\WebServices\Servers::getFilteredList($filters).
$filters must be an associative array where the key are the filter name. Here is the documentation for the values.
- environment string The environment name, at the moment only Storm or Canyon
- title string The Title idString for example SMStormElite@nadeolabs
- playersMin int Minimum number of player connected on the server
- playersMax int Maximum number of player connected on the server
- hideFull bool If true, full servers will not be displayed
- visibility string It can take one of those 3 values: all, public or private
- zone string The path to a zone, for example: World|France. It will display every server in France subzones
- mode mixed It can be one of class constant, or directly the game mode name itself (TimeAttack, Melee, ...)
- offset int The offset in the list where the results will start
- length int Number of elements returned
Code: Select all
$service = new \Maniaplanet\WebServices\Servers('api_username','api_password');
$list = $service->getFilteredList(array('title'=>'SMStorm', 'mode'=>'Melee', 'playersMin'=>1, 'hideFull'=>true, 'visibility'=>'all', 'zone'=>'World|France','length'=>20));