Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 617 Bytes

alliances.md

File metadata and controls

30 lines (21 loc) · 617 Bytes

Alliances

Albion\OnlineDataProject\Infrastructure\GameInfo\AllianceClient::class

Unfortunately API only allows to get information. Search is unavailable at the moment

Get alliance information

Method

getAllianceInfo()

Params
  • Realm $realm - one of Realm.
  • string $allianceId - alliance identifier
Example
$allianceId = 'AllianceId';
$realm = Realm::AMERICA;

$client = new AllianceClient();

$client->getAllianceInfo($realm, $allianceId)
    ->then(
        static function($data) {
            // Do something with data
        }
    );