-
Notifications
You must be signed in to change notification settings - Fork 2
Resource CountryResource
CrucifiedPain edited this page Jun 26, 2026
·
9 revisions
Endpoints: • country.getCountryById • country.getAllCountries
Client-side helper: return the country matching name (case-insensitive).
Returns None if no country with that name exists.
await client.country.find_by_name(name: 'str') -> 'Country | None'| Name | Type | Default |
|---|---|---|
name |
str |
*Required* |
Get a single country by ID.
await client.country.get(country_id: 'str') -> 'Country'| Name | Type | Default |
|---|---|---|
country_id |
str |
*Required* |
Get all countries. Returns a dict keyed by country ID for O(1) lookups.
await client.country.get_all() -> 'dict[str, Country]'Clear the SWR cache for all resources.
await client.country.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