asoiaf-api

Crates.ioasoiaf-api
lib.rsasoiaf-api
version0.1.1
sourcesrc
created_at2024-01-24 21:53:41.412978
updated_at2024-03-06 10:04:18.221618
descriptionRust wrapper for the api of ice and fire.
homepage
repositoryhttps://github.com/Yag000/asoiaf-rs
max_upload_size
id1113008
size44,386
Yago Iglesias (Yag000)

documentation

https://docs.rs/asoiaf-api

README

asoiaf-rs

A Rust library for interacting with the An API of Ice and Fire.

Usage

There is more documentation available on the docs.rs page.

use asoiaf_api::Client;

#[tokio::main]
async fn main() {
    let client = Client::new();

    let books = client.get_books().await.unwrap();
    let characters = client.get_characters().await.unwrap();
    let houses = client.get_houses().await.unwrap();
}

This minimal example will fetch all books, characters and houses from the API.

License

This project is licensed under the MIT license and Apache License 2.0.

Contributing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in asoiaf-rs by you, shall be licensed as MIT and Apache 2.0, without any additional terms or conditions.

Having said that, every contribution is welcome and I look forward to your PRs and issues.

Commit count: 0

cargo fmt