Class TrustCircles
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\TrustCircles
Methods summary
public
object
|
#
getKarma( string $circle, string $player )
Get how many times a player has been blacklisted and whitelisted within a
circle
Get how many times a player has been blacklisted and whitelisted within a
circle
Parameters
- $circle
string $circle
- $player
string $player
Returns
object Numbers of blacklistings and whitelistings
Throws
|
public
string[]|object[]
|
#
getBlackList( string|null $circle = null )
Get your own blacklist or a shared one
Get your own blacklist or a shared one
Parameters
- $circle
string|null $circle A circle name or null to get your own
Returns
string[]|object[] An array of strings for your own blacklist or an array of objects with 2 fields:
login of the player, number of blacklistings
|
public
string[]|object[]
|
#
getWhiteList( string|null $circle = null )
Get your own whitelist or a shared one
Get your own whitelist or a shared one
Parameters
- $circle
string|null $circle A circle name or null to get your own
Returns
string[]|object[] An array of strings for your own whitelist or an array of objects with 2 fields:
login of the player, number of whitelistings
|
public
|
#
blackList( string $player )
Blacklist a player
Parameters
Throws
|
public
|
#
whiteList( string $player )
Whitelist a player
Parameters
Throws
|
public
|
#
unBlackList( string $player )
Unblacklist a player
Parameters
Throws
|
public
|
#
unWhiteList( string $player )
Unwhitelist a player
Parameters
Throws
|
Properties inherited from Maniaplanet\WebServices\HTTPClient
$APIURL,
$accept,
$contentType,
$enableAuth,
$headers,
$lastException,
$password,
$serializeCallback,
$throwExceptions,
$unserializeCallback,
$username
|