Class Servers
HTTP client used to requests on the Maniaplanet Web Services API. Service
classes of the SDK extends this base class.
-
Maniaplanet\WebServices\HTTPClient
-
Maniaplanet\WebServices\Servers
Methods summary
public
object
|
#
get( string $login )
Returns information about the specified server
Returns information about the specified server
Parameters
Returns
object
|
public
object[]
|
#
getOnlinePlayers( string $login )
Return online players for the given server
Return online players for the given server
Parameters
Returns
object[]
Throws
|
public
integer
|
#
getFavoritedCount( string $login )
Return the number of persons that have favorited the server
Return the number of persons that have favorited the server
Parameters
Returns
integer
Throws
|
public
object[]
|
#
getReportAbuses( string $login )
Return the report abuses created on the given login
Return the report abuses created on the given login
Parameters
Returns
object[]
Throws
|
public
object[]
|
#
getFilteredList( array $filters = array() )
Parameters
- $filters
array[] $filters This should be an associative array, it can contain any of the
following values with the correct key: environment string Canyon or Storm title
string the Title idString 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, ...) ladderLimitMin int Ladder server limit min (ie:
70000) ladderLimitMax int Ladder server limit max (ie: 100000) offset int The
offset in the list where the results will start length int Number of elements
returned
Returns
object[]
|
Properties inherited from Maniaplanet\WebServices\HTTPClient
$APIURL,
$accept,
$contentType,
$enableAuth,
$headers,
$lastException,
$password,
$serializeCallback,
$throwExceptions,
$unserializeCallback,
$username
|