coc.rs
A Clash of clans API wrapper written in rust!
Key feature
- Asynchronous code
- Entire coverage of Clash of clans API
- Email and Password Login
- Multiple Accounts Login to handle concurrent requests
Getting Started
Installing
add this in your Cargo.toml
coc-rs = "0.1.1"
Alternatively with cargo add
$ cargo add coc-rs
Quick Example
async
How to Handler Errors
async
Possible Error Code
400 -> BadRequestException 403 -> AuthException 404 -> NotFoundException 429 -> RateLimitException 503 -> MaintenanceException
Note
src/test.rs
contains examples for every endpoint in more detail.
Contributing
Contributing is fantastic and much welcomed! If you have an issue, feel free to open an issue and start working on it.
Disclaimer
This content is not affiliated with, endorsed, sponsored, or specifically approved by Supercell and Supercell is not responsible for it. For more information see Supercell's Fan Content Policy.