Skip to content

Liefland/idle_champions_client_licc

licc

Liefland Idle Champions Codes - https://crates.io/crates/licc

Build Status Docs.rs License

Simple Async HTTP client that helps you obtain codes that can be redeemed for Idle Champions of the Forgotten Realms

This interfaces with idle_champions_codes_api hosted repositories, of which the official one maintained by Liefland is hosted at codes.idlechampions.liefland.net

All repositories we maintain: GitHub

Installation

Add as a dependency:

  • cargo add licc
  • cargo add licc --features="write"
    • Enables write operations of the API This functionality will only be helpful to you if you have an API Key.

Examples

use licc::{Code, client::{CodesClient, ClientError}};

async fn list_codes() -> Result<(), ClientError> {
    let client = CodesClient::default();

    let response: Vec<Code> = client.get_codes().await?;

    response.for_each(|code| println!("{}", code.code));
    
    Ok(())
}

For more examples, see the examples/ directory.

Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request.

License

Licensed under the following licenses at your option:

Files in the project may not be copied, modified, or distributed except according to those terms.

About

HTTP Client for codes.idlechampions.liefland.net

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages