-
Notifications
You must be signed in to change notification settings - Fork 2
Resource ActionLogResource
CrucifiedPain edited this page Jun 26, 2026
·
11 revisions
Endpoints: • actionLog.getPaginated (cursor-paginated)
Fetch all items across all pages concurrently using parallel time-slicing.
await client.actionlog.collect_all(**kwargs: 'typing.Any') -> 'list[ActionLog]'| Name | Type | Default |
|---|---|---|
kwargs |
Any |
*Required* |
A single action log entry from actionLog.getPaginated.
| Field | Type | Required | Description |
|---|---|---|---|
_id |
string \| null |
❌ | |
__v |
integer \| null |
❌ | |
userId |
string \| null |
❌ | |
muId |
string \| null |
❌ | |
countryId |
string \| null |
❌ | |
actionType |
string \| null |
❌ | |
timestamp |
string \| null |
❌ | |
details |
object \| null |
❌ |
Convenience: collect all action logs matching the given filters.
await client.actionlog.get_all(**kwargs: 'Any') -> 'list[ActionLog]'| Name | Type | Default |
|---|---|---|
kwargs |
Any |
*Required* |
A single action log entry from actionLog.getPaginated.
| Field | Type | Required | Description |
|---|---|---|---|
_id |
string \| null |
❌ | |
__v |
integer \| null |
❌ | |
userId |
string \| null |
❌ | |
muId |
string \| null |
❌ | |
countryId |
string \| null |
❌ | |
actionType |
string \| null |
❌ | |
timestamp |
string \| null |
❌ | |
details |
object \| null |
❌ |
Get paginated action logs with optional filtering.
Args: limit: Number of results per page (1-100, default 20). cursor: Pagination cursor for the next page. user_id: Filter by user ID. mu_id: Filter by military unit ID. country_id: Filter by country ID. action_type: Filter by action type.
await client.actionlog.get_many(*, limit: 'int' = 20, cursor: 'str | None' = None, user_id: 'str | None' = None, mu_id: 'str | None' = None, country_id: 'str | None' = None, action_type: 'ActionLogActionType | str | None' = None, auto_items: 'bool' = False, max_pages: 'int | float' = inf, cursor_end: 'str | None' = None) -> 'CursorPage[ActionLog] | AsyncIterator[ActionLog]'| Name | Type | Default |
|---|---|---|
limit |
int |
20 |
cursor |
str | None |
None |
user_id |
str | None |
None |
mu_id |
str | None |
None |
country_id |
str | None |
None |
action_type |
ActionLogActionType | str | None |
None |
auto_items |
bool |
False |
max_pages |
int | float |
inf |
cursor_end |
str | None |
None |
A single action log entry from actionLog.getPaginated.
| Field | Type | Required | Description |
|---|---|---|---|
_id |
string \| null |
❌ | |
__v |
integer \| null |
❌ | |
userId |
string \| null |
❌ | |
muId |
string \| null |
❌ | |
countryId |
string \| null |
❌ | |
actionType |
string \| null |
❌ | |
timestamp |
string \| null |
❌ | |
details |
object \| null |
❌ |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
string \| null |
❌ | |
__v |
integer \| null |
❌ | |
items |
array[ActionLog] |
✅ | |
nextCursor |
string \| null |
❌ | |
hasMore |
boolean |
❌ |
Clear the SWR cache for all resources.
await client.actionlog.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