-
Notifications
You must be signed in to change notification settings - Fork 2
Resource AllianceResource
CrucifiedPain edited this page Jun 26, 2026
·
10 revisions
Endpoints: • alliance.getById • alliance.getByIds • alliance.getManyPaginated (cursor-paginated)
Fetch all items across all pages concurrently using parallel time-slicing.
await client.alliance.collect_all(**kwargs: 'typing.Any') -> 'list[Alliance]'| Name | Type | Default |
|---|---|---|
kwargs |
Any |
*Required* |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
`string | null` | No |
__v |
`integer | null` | No |
name |
`string | null` | No |
scheme |
`string | null` | No |
mapAccent |
`string | null` | No |
leader |
`string | null` | No |
memberCountries |
`array[AllianceMemberCountry] | null` | No |
currentDevelopment |
`number | integer | null` |
coreDevelopment |
`number | integer | null` |
averageDevelopment |
`number | integer | null` |
createdAt |
`string | null` | No |
updatedAt |
`string | null` | No |
rankings |
`AllianceRankings | null` | No |
avatarUrl |
`string | null` | No |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
`string | null` | No |
__v |
`integer | null` | No |
country |
`string | null` | No |
coreDevelopment |
`number | integer | null` |
averageDevelopment |
`number | integer | null` |
suspended |
`boolean | null` | No |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
`string | null` | No |
__v |
`integer | null` | No |
value |
`number | integer | null` |
rank |
`integer | null` | No |
tier |
`string | null` | No |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
`string | null` | No |
__v |
`integer | null` | No |
allianceInitialDevelopment |
`AllianceRankingEntry | null` | No |
allianceDevelopment |
`AllianceRankingEntry | null` | No |
allianceWeeklyDamages |
`AllianceRankingEntry | null` | No |
allianceDamages |
`AllianceRankingEntry | null` | No |
alliancePopulation |
`AllianceRankingEntry | null` | No |
allianceWeeklyDamagesPerCitizen |
`AllianceRankingEntry | null` | No |
Get a single alliance by ID.
await client.alliance.get(alliance_id: 'str') -> 'Alliance'| Name | Type | Default |
|---|---|---|
alliance_id |
str |
*Required* |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
`string | null` | No |
__v |
`integer | null` | No |
name |
`string | null` | No |
scheme |
`string | null` | No |
mapAccent |
`string | null` | No |
leader |
`string | null` | No |
memberCountries |
`array[AllianceMemberCountry] | null` | No |
currentDevelopment |
`number | integer | null` |
coreDevelopment |
`number | integer | null` |
averageDevelopment |
`number | integer | null` |
createdAt |
`string | null` | No |
updatedAt |
`string | null` | No |
rankings |
`AllianceRankings | null` | No |
avatarUrl |
`string | null` | No |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
`string | null` | No |
__v |
`integer | null` | No |
country |
`string | null` | No |
coreDevelopment |
`number | integer | null` |
averageDevelopment |
`number | integer | null` |
suspended |
`boolean | null` | No |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
`string | null` | No |
__v |
`integer | null` | No |
value |
`number | integer | null` |
rank |
`integer | null` | No |
tier |
`string | null` | No |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
`string | null` | No |
__v |
`integer | null` | No |
allianceInitialDevelopment |
`AllianceRankingEntry | null` | No |
allianceDevelopment |
`AllianceRankingEntry | null` | No |
allianceWeeklyDamages |
`AllianceRankingEntry | null` | No |
allianceDamages |
`AllianceRankingEntry | null` | No |
alliancePopulation |
`AllianceRankingEntry | null` | No |
allianceWeeklyDamagesPerCitizen |
`AllianceRankingEntry | null` | No |
Get multiple alliances by their IDs.
await client.alliance.get_many(ids: 'list[str]') -> 'list[Alliance]'| Name | Type | Default |
|---|---|---|
ids |
list[str] |
*Required* |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
`string | null` | No |
__v |
`integer | null` | No |
name |
`string | null` | No |
scheme |
`string | null` | No |
mapAccent |
`string | null` | No |
leader |
`string | null` | No |
memberCountries |
`array[AllianceMemberCountry] | null` | No |
currentDevelopment |
`number | integer | null` |
coreDevelopment |
`number | integer | null` |
averageDevelopment |
`number | integer | null` |
createdAt |
`string | null` | No |
updatedAt |
`string | null` | No |
rankings |
`AllianceRankings | null` | No |
avatarUrl |
`string | null` | No |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
`string | null` | No |
__v |
`integer | null` | No |
country |
`string | null` | No |
coreDevelopment |
`number | integer | null` |
averageDevelopment |
`number | integer | null` |
suspended |
`boolean | null` | No |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
`string | null` | No |
__v |
`integer | null` | No |
value |
`number | integer | null` |
rank |
`integer | null` | No |
tier |
`string | null` | No |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
`string | null` | No |
__v |
`integer | null` | No |
allianceInitialDevelopment |
`AllianceRankingEntry | null` | No |
allianceDevelopment |
`AllianceRankingEntry | null` | No |
allianceWeeklyDamages |
`AllianceRankingEntry | null` | No |
allianceDamages |
`AllianceRankingEntry | null` | No |
alliancePopulation |
`AllianceRankingEntry | null` | No |
allianceWeeklyDamagesPerCitizen |
`AllianceRankingEntry | null` | No |
Get alliances (cursor-paginated).
await client.alliance.get_paginated(*, limit: 'int' = 20, cursor: 'str | None' = None, auto_items: 'bool' = False, max_pages: 'int | float' = inf, cursor_end: 'str | None' = None) -> 'CursorPage[Alliance] | AsyncIterator[Alliance]'| Name | Type | Default |
|---|---|---|
limit |
int |
20 |
cursor |
`str | None` |
auto_items |
bool |
False |
max_pages |
`int | float` |
cursor_end |
`str | None` |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
`string | null` | No |
__v |
`integer | null` | No |
name |
`string | null` | No |
scheme |
`string | null` | No |
mapAccent |
`string | null` | No |
leader |
`string | null` | No |
memberCountries |
`array[AllianceMemberCountry] | null` | No |
currentDevelopment |
`number | integer | null` |
coreDevelopment |
`number | integer | null` |
averageDevelopment |
`number | integer | null` |
createdAt |
`string | null` | No |
updatedAt |
`string | null` | No |
rankings |
`AllianceRankings | null` | No |
avatarUrl |
`string | null` | No |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
`string | null` | No |
__v |
`integer | null` | No |
country |
`string | null` | No |
coreDevelopment |
`number | integer | null` |
averageDevelopment |
`number | integer | null` |
suspended |
`boolean | null` | No |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
`string | null` | No |
__v |
`integer | null` | No |
value |
`number | integer | null` |
rank |
`integer | null` | No |
tier |
`string | null` | No |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
`string | null` | No |
__v |
`integer | null` | No |
allianceInitialDevelopment |
`AllianceRankingEntry | null` | No |
allianceDevelopment |
`AllianceRankingEntry | null` | No |
allianceWeeklyDamages |
`AllianceRankingEntry | null` | No |
allianceDamages |
`AllianceRankingEntry | null` | No |
alliancePopulation |
`AllianceRankingEntry | null` | No |
allianceWeeklyDamagesPerCitizen |
`AllianceRankingEntry | null` | No |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
`string | null` | No |
__v |
`integer | null` | No |
items |
array[Alliance] |
Yes | |
nextCursor |
`string | null` | No |
hasMore |
boolean |
No |
Clear the SWR cache for all resources.
await client.alliance.invalidate_cache() -> 'None'- action_log
- alliance
- article
- battle
- battle_loot_summary
- battle_order
- battle_ranking
- company
- country
- donation
- election
- event
- game_config
- game_stat
- government
- inventory
- item_trading
- mercenary_contract_auction
- mu
- mu_member
- party
- ranking
- region
- round
- search
- tournament
- transaction
- upgrade
- user
- work
- work_offer
- worker