coc
Getting Started
Logging In
Basic Client Interface
Events Client
Models
Clans
Players
Wars
Raids
Game Objects
Clan and Player Attributes
Miscellaneous
Advanced
Events
Game Data
Custom Classes
Utility Functions
Exceptions
Extensions
Full War Api Extension
Triggers Extension
Examples
Discord Bot
Events
War Logs
Import client everywhere
Miscellaneous
Index
Changelog
Migrating to coc.py v3.0
Migrating to coc.py v2.0
Migrating to coc.py v1.0
Acknowledgements
coc
coc.py: A Clash of Clans API Wrapper
View page source
coc.py: A Clash of Clans API Wrapper
Getting Started
Logging In
Example
Special Parameters
Basic Client Interface
Events Client
Models
Clans
Base Clan
Player Clan
Ranked Clan
War Clan
Clan War League Clan
Raid Clan
Clan
Players
Base Player
Clan Member
Ranked Player
Clan War League Clan Member
Raid Member
Clan War Member
Player
Wars
Clan War
Clan War Log Entry
Clan War League Group
War Round
War Attack
Raids
Raid Log Entry
Raid District
Raid Attack
Game Objects
Troop
Hero
Pet
Spell
Resource
Clan and Player Attributes
Achievement
Capital District
Label
Base League
League
Legend Statistics
PlayerHouseElement
PlayerHouseElementType
Role
Miscellaneous
Graphics
Time
Location
Enumerations
Advanced
Events
What are they?
Getting Started
Custom Classes
Client (coc.py) Events
Game Data
Why?
Initialising the Client
Loading Game Data Manually
Initiated vs Uninitiated Objects
Custom Classes
Basic Usage
Custom Classes for Nested Objects
Passing in Arguments to Custom Classes
Memory Optimisations
Custom Classes in Events
Utility Functions
Exceptions
Extensions
Full War Api Extension
Overview
Triggers Extension
Overview
API Reference
Example
Extending this Extension
Examples
Discord Bot
Events
War Logs
Import client everywhere
Miscellaneous
Index
Changelog
Migrating to coc.py v3.0
Migrating to coc.py v2.0
Migrating to coc.py v1.0
Acknowledgements