Rust of Clans 🛡️

Welcome to Rust of Clans, the ultimate Clash of Clans API client for Rust! 🎮 Whether you're a seasoned clan leader, a strategy enthusiast, or simply love diving into the world of Clash of Clans, this package is here to make your life easier.

Features

Usage

```rust use rustofclans::CoCClient;

[tokio::main]

async fn main() { // Create a new Clash of Clans API client let bearertoken = std::env::var("BEARERTOKEN").expect("env var BEARERTOKEN not set"); let cocclient = CoCClient::new(bearertoken.toowned(), None);

// Get information about a clan
let clan_tag = "#CLAN_TAG";
let clan_info = coc_client.get_clan_information(clan_tag).await;

match clan_info {
    Ok(clan) => {
        // Process clan information
        println!("Clan Name: {}", clan.name);
        println!("Clan Level: {}", clan.clan_level);
        // ...
    }
    Err(error) => {
        // Handle the error
        eprintln!("Error: {}", error);
    }
}

} ```

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

Before submitting a pull request, please ensure that your code adheres to the project's coding conventions and passes all tests.

License

This project is licensed under the MIT License.