licc 0.1.0

Liefland Idle Champions Codes - Client for the liefland codes API service for Idle Champions of the Forgotten Realms chest codes
Documentation

licc

Liefland Idle Champions Codes

Build Status Docs.rs License

Simple HTTP 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 --features="readonly"

We recommend enabling the readonly feature, as only very few people have access to the write API.

Examples

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

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(())
}

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.