Overview

Namespaces

  • DedicatedApi
    • Structures
    • Xmlrpc
  • ManiaLib
    • Gui
      • Cards
        • Dialogs
        • Navigation
      • Elements
      • Layouts
      • Maniacode
        • Elements
    • Utils
  • ManiaLive
    • Application
    • Config
    • Data
    • Database
      • MySQL
      • SQLite
    • DedicatedApi
      • Callback
    • Event
    • Features
      • Admin
      • ChatCommand
      • Tick
      • WebServices
    • Gui
      • Controls
      • Elements
      • Windows
    • PluginHandler
    • Threading
    • Utilities
  • ManiaLiveApplication
  • Maniaplanet
    • WebServices
      • ManiaConnect
      • ManiaHome
      • Rankings
  • PHP

Classes

  • Competitions
  • Event
  • Foobar
  • HTTPClient
  • Links
  • ManiaFlash
  • Manialinks
  • Payments
  • Players
  • Servers
  • Teams
  • Transaction
  • TrustCircles
  • Zones

Exceptions

  • Exception
  • Overview
  • Namespace
  • Class
  • Tree

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
Extended by Maniaplanet\WebServices\TrustCircles
Namespace: Maniaplanet\WebServices
Located at libraries/Maniaplanet/WebServices/TrustCircles.php
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

Maniaplanet\WebServices\Exception
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

Blacklist a player

Parameters

$player
string
$player

Throws

Maniaplanet\WebServices\Exception
public
# whiteList( string $player )

Whitelist a player

Whitelist a player

Parameters

$player
string
$player

Throws

Maniaplanet\WebServices\Exception
public
# unBlackList( string $player )

Unblacklist a player

Unblacklist a player

Parameters

$player
string
$player

Throws

Maniaplanet\WebServices\Exception
public
# unWhiteList( string $player )

Unwhitelist a player

Unwhitelist a player

Parameters

$player
string
$player

Throws

Maniaplanet\WebServices\Exception
Methods inherited from Maniaplanet\WebServices\HTTPClient
__construct(), execute()
Constants inherited from Maniaplanet\WebServices\HTTPClient
VERSION
Properties inherited from Maniaplanet\WebServices\HTTPClient
$APIURL, $accept, $contentType, $enableAuth, $headers, $lastException, $password, $serializeCallback, $throwExceptions, $unserializeCallback, $username
ManiaLiveDoc API documentation generated by ApiGen 2.8.0