Crates.io | licc |
lib.rs | licc |
version | 0.2.0 |
source | src |
created_at | 2024-01-28 20:57:36.334058 |
updated_at | 2024-01-29 15:45:18.840708 |
description | Liefland Idle Champions Codes - Client for the liefland codes API service for Idle Champions of the Forgotten Realms chest codes |
homepage | https://github.com/Liefland/idle_champions_client_licc |
repository | https://github.com/Liefland/idle_champions_client_licc |
max_upload_size | |
id | 1117852 |
size | 70,310 |
Liefland Idle Champions Codes
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
Add as a dependency:
cargo add licc
cargo add licc --features="write"
use licc::{Code, client::CodesClient};
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.
Contributions are welcome! Feel free to open an issue or submit a pull request.
Licensed under the following licenses at your option:
Files in the project may not be copied, modified, or distributed except according to those terms.