Albion\OnlineDataProject\Infrastructure\GameInfo\BattleClient::class
getBattles()
- Realm
$realm
- one of Realm. - Range
$range
- one of the Range values. - int
$limit
- limit response results [default = 10], - int
$offset
- skip n first values [default = 0], - BattleSortType
$sort
- sort battles by BattleSortType [default = BattleSortType::RECENT] - string
$guildId
- look for this guild only
Get the current day most famous battles
$client = new BattleClient();
$client->getBattles(
Realm::AMERICA,
Range::DAY,
1,
0,
BattleSortType::TOTAL_FAME
)
->then(
static function($battles) {
// Do something with battles information
}
)