-
Notifications
You must be signed in to change notification settings - Fork 2
Resource EventResource
CrucifiedPain edited this page Jun 26, 2026
·
10 revisions
Endpoints: • event.getEventsPaginated (cursor-paginated)
Fetch all items across all pages concurrently using parallel time-slicing.
await client.event.collect_all(**kwargs: 'typing.Any') -> 'list[Event]'| Name | Type | Default |
|---|---|---|
kwargs |
Any |
Required |
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
type |
string |
Optional |
countryId |
string |
Optional |
countries |
array[string] |
Optional |
priority |
string | integer
|
Optional |
data |
object |
Optional |
createdAt |
string |
Optional |
updatedAt |
string |
Optional |
message |
string |
Optional |
Get game events, optionally filtered by country and/or event type.
await client.event.get_paginated(*, limit: 'int' = 10, cursor: 'str | None' = None, country_id: 'str | None' = None, event_types: 'list[EventType | str] | None' = None, auto_items: 'bool' = False, max_pages: 'int | float' = inf, cursor_end: 'str | None' = None) -> 'CursorPage[Event] | AsyncIterator[Event]'| Name | Type | Default |
|---|---|---|
limit |
int |
10 |
cursor |
str |
None |
country_id |
str |
None |
event_types |
list[EventType | str]
|
None |
auto_items |
bool |
False |
max_pages |
int | float
|
inf |
cursor_end |
str |
None |
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
items |
array[Event] |
Required |
nextCursor |
string |
Optional |
hasMore |
boolean |
Optional |
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
type |
string |
Optional |
countryId |
string |
Optional |
countries |
array[string] |
Optional |
priority |
string | integer
|
Optional |
data |
object |
Optional |
createdAt |
string |
Optional |
updatedAt |
string |
Optional |
message |
string |
Optional |
Clear the SWR cache for all resources.
await client.event.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