Crates.io | lotr-api |
lib.rs | lotr-api |
version | 0.2.0 |
source | src |
created_at | 2023-09-05 23:49:11.19626 |
updated_at | 2024-08-31 17:20:03.566897 |
description | Rust wrapper for the one API to rule them all. |
homepage | https://github.com/Yag000/lotr-api-rs |
repository | https://github.com/Yag000/lotr-api-rs |
max_upload_size | |
id | 964922 |
size | 66,881 |
This project is a Rust wrapper around the LOTR API.
There is more documentation available on the docs.rs page.
use lotr_api::Client;
#[tokio::main]
async fn main() {
let client = Client::new("your-api-key");
let book = client.get_book("5cf5805fb53e011a64671582").await.unwrap();
println!("{:?}", book);
}
This minimal example will print the information about the LOTR books available on the API.
This project is licensed under the MIT license and Apache License 2.0.
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in lotr-api-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.