Albion\OnlineDataProject\Infrastructure\GameInfo\GuildClient::class
searchGuild(string $query)
- FailedToPerformRequestException - in case if something went wrong
- GuildNotFoundException - in case if guild not found
$client = new GuildClient();
$client->searchGuild(Realm::AMERICA, 'my-guild-name')
->then(
static function($guilds) {
// Do something with guilds information
}
)
getGuildInfo()
- FailedToPerformRequestException - in case if something went wrong
- GuildNotFoundException - in case if guild not found
$client = new GuildClient();
$client->getGuildInfo(Realm::AMERICA, 'guild-uuid')
->then(
static function($guild) {
// Do something with guild information
}
)
getGuildData()
- FailedToPerformRequestException - in case if something went wrong
- GuildNotFoundException - in case if guild not found
$client = new GuildClient();
$client->getGuildData(Realm::AMERICA, 'guild-uuid')
->then(
static function($guild) {
// Do something with guild information
}
)
getGuildTopMembers()
- Realm
$realm
- one of Realm. - string
$guildId
- guild id - Range
$range
- one of the Range values [default=Range::DAY]. - int
$limit
- limit response amount [default = 10], - int
$offset
- skip first n values [default = 0], - RegionType
$regionType
- region type [default = RegionType::TOTAl],
- FailedToPerformRequestException - in case if something went wrong
- GuildNotFoundException - in case if guild not found
$client = new GuildClient();
$client->getGuildTopMembers(Realm::AMERICA, 'guild-uuid', Range::of(Range::DAY), 10, 0, RegionType::of(RegionType::HELLGATES))
->then(
static function($players) {
// Do something with player information
}
)
getGuildMembers(string $guildId)
- FailedToPerformRequestException - in case if something went wrong
- GuildNotFoundException - in case if guild not found
$client = new GuildClient();
$client->getGuildMembers(Realm::AMERICA, 'guild-uuid')
->then(
static function($players) {
// Do something with player information
}
)
getGuildTopByAttacks()
- Realm
$realm
- one of Realm. - Range
$range
- one of the Range values [default=Range::DAY]. - int
$limit
- limit response amount [default = 10], - int
$offset
- skip first n values [default = 0],
- FailedToPerformRequestException - in case if something went wrong
$client = new GuildClient();
$client->getGuildTopByAttacks(Realm::AMERICA, Range::WEEK, 15, 0)
->then(
static function($guilds) {
// Do something with guilds information
}
)
getGuildTopByDefences()
- Realm
$realm
- one of Realm. - Range
$range
- one of the Range values [default=Range::DAY]. - int
$limit
- limit response amount [default = 10], - int
$offset
- skip first n values [default = 0],
- FailedToPerformRequestException - in case if something went wrong
$client = new GuildClient();
$client->getGuildTopByDefences(Realm::AMERICA, Range::of(Range::WEEK), 15, 0)
->then(
static function($guilds) {
// Do something with guilds information
}
)
getGuildTopEvents()
- Realm
$realm
- one of Realm. - string
$guildId
- guild identifier - Range
$range
- one of the Range values [default=Range::DAY]. - int
$limit
- limit response amount [default = 10], - int
$offset
- skip first n values [default = 0],
- FailedToPerformRequestException - in case if something went wrong
$client = new GuildClient();
$client->getGuildTopEvents(Realm::AMERICA, 'identifier', Range::of(Range::WEEK), 15, 0)
->then(
static function($guilds) {
// Do something with guilds information
}
)