-
Notifications
You must be signed in to change notification settings - Fork 2
Resource WorkerResource
CrucifiedPain edited this page Jun 26, 2026
·
8 revisions
Endpoints: • worker.getWorkers • worker.getTotalWorkersCount
Get the total number of workers employed by a user across all their companies.
await client.worker.get_total_count(user_id: 'str') -> 'int'| Name | Type | Default |
|---|---|---|
user_id |
str |
*Required* |
Get workers, optionally filtered by company or user. At least one of company_id or user_id should be provided.
await client.worker.get_workers(*, company_id: 'str | None' = None, user_id: 'str | None' = None) -> 'list[Worker]'| Name | Type | Default |
|---|---|---|
company_id |
`str | None` |
user_id |
`str | None` |
Clear the SWR cache for all resources.
await client.worker.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