-
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 | Description |
|---|---|---|---|
_id |
`string | null` | No |
__v |
`integer | null` | No |
type |
`string | null` | No |
countryId |
`string | null` | No |
countries |
`array[string] | null` | No |
priority |
`string | integer | null` |
data |
`object | null` | No |
createdAt |
`string | null` | No |
updatedAt |
`string | null` | No |
message |
`string | null` | No |
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] |
auto_items |
bool |
False |
max_pages |
`int | float` |
cursor_end |
`str | None` |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
`string | null` | No |
__v |
`integer | null` | No |
items |
array[Event] |
Yes | |
nextCursor |
`string | null` | No |
hasMore |
boolean |
No |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
`string | null` | No |
__v |
`integer | null` | No |
type |
`string | null` | No |
countryId |
`string | null` | No |
countries |
`array[string] | null` | No |
priority |
`string | integer | null` |
data |
`object | null` | No |
createdAt |
`string | null` | No |
updatedAt |
`string | null` | No |
message |
`string | null` | No |
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