getWarLeague

suspend fun getWarLeague(leagueId: Int, pagination: PaginationQuery = PaginationQuery()): Deferred<SimpleLeague>

Retrieves information about a specific War League based on the provided leagueId.

Return

A Deferred object representing the specified War League.

Parameters

leagueId

The ID of the War League to retrieve.

pagination

An optional PaginationQuery object for customizing the pagination of the results.

Throws

If the API is in maintenance.

If the requested league is not found.

If the API returns an unexpected gateway exception.