Skip to content

Resource EventResource

CrucifiedPain edited this page Jun 26, 2026 · 10 revisions

EventResource (client.event)

Endpoints: • event.getEventsPaginated (cursor-paginated)

.collect_all()

Fetch all items across all pages concurrently using parallel time-slicing.

Signature

await client.event.collect_all(**kwargs: 'typing.Any') -> 'list[Event]'

Parameters

Name Type Default
kwargs Any *Required*

Return Models

Event

Field Type Required Description
_id `string null` No
__v `integer null` No
type `string null` No
countryId `string null` No
countries `array null` No
priority `string integer null`
data `object null` No
createdAt `string null` No
updatedAt `string null` No
message `string null` No

.get_paginated()

Get game events, optionally filtered by country and/or event type.

Signature

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]'

Parameters

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`

Return Models

CursorPage[Event]

Field Type Required Description
_id `string null` No
__v `integer null` No
items array Yes
nextCursor `string null` No
hasMore boolean No

Event

Field Type Required Description
_id `string null` No
__v `integer null` No
type `string null` No
countryId `string null` No
countries `array null` No
priority `string integer null`
data `object null` No
createdAt `string null` No
updatedAt `string null` No
message `string null` No

.invalidate_cache()

Clear the SWR cache for all resources.

Signature

await client.event.invalidate_cache() -> 'None'

Clone this wiki locally