Event Client
Client for managing and monitoring events related to players and clans.
This class allows you to register callbacks for specific events and periodically update player data to detect changes. It uses a coroutine-based approach for asynchronous event handling.
Parameters
The email associated with the Clash of Clans API account.
The password associated with the Clash of Clans API account.
The configuration for the client.You can customize the client using the ClientConfiguration DSL.
Constructors
Functions
Adds a clan's tag to the update queue for monitoring. Once a clan's tag is added to the queue, the client will begin monitoring the clan.
Adds a player's tag to the update queue for monitoring. Once a player's tag is added to the queue, the client will begin monitoring the player.
Adds a clan's war events to the update queue for monitoring. Once a clan's war events are added to the queue, the client will start monitoring them.
Retrieves information about a specific Builder Base league based on the provided leagueId.
Retrieves the list of Builder Base leagues.
Retrieves detailed information about a specific capital league based on the provided leagueId.
Retrieves a list of capital leagues.
Retrieves the capital raid seasons of a clan based on the provided clanTag.
Retrieves the current war of a clan based on the provided clanTag.
Retrieves a list of clan labels.
Retrieves the list of members in a clan based on the provided clanTag.
Gets the Clan War League group for the clan specified by clanTag.
Gets the Clan War League war specified by warTag.
Retrieves the war log of a clan based on the provided clanTag.
Retrieves the current Gold Pass season information.
Retrieves a list of leagues.
Retrieves a list of seasons for a specific league based on the provided leagueId.
Retrieves information about a specific location based on the provided locationId.
Retrieves the list of clans ranked in the Capital for a specific location based on the provided locationId.
Retrieves the list of clans ranked in the Builder Base for a specific location based on the provided locationId.
Retrieves the list of clans ranked in a specific location based on the provided locationId.
Retrieves the list of players ranked in the Builder Base for a specific location based on the provided locationId.
Retrieves the list of players ranked in a specific location based on the provided locationId.
Retrieves the list of available locations.
Retrieves a list of player labels.
Retrieves information about a specific War League based on the provided leagueId.
Retrieves the list of War Leagues.
Registers a callback for clan-related events.
Registers a callback for clan-related events with an iterable callback function.
Registers a callback for maintenance-related events.
Registers a callback for maintenance-related events with an iterable callback function.
Registers a callback for player-related events.
Registers a callback for player-related events with an iterable callback function.
Registers a callback for war-related events.
Registers a callback for war-related events with an iterable callback function.
Removes a clan's tag from the update queue. Once a clan's tag is removed from the queue, the client stops monitoring the clan.
Removes a player's tag from the update queue. Once a player's tag is removed from the queue, the client stops monitoring the player.
Removes a clan's war events from the update queue. Once a clan's war events are removed from the queue, the client stops monitoring them.
Searches for clans based on the provided searchClanQuery.
Starts polling for events and updating player data.