Arnak
Rust library for BoardGameGeek XML API bindings.
Usage
use BoardGameGeekApi;
// Enter tokio async runtime.
let rt = new.unwrap;
rt.block_on
Rust library for BoardGameGeek XML API bindings.
use arnak::BoardGameGeekApi;
// Enter tokio async runtime.
let rt = tokio::runtime::Runtime::new().unwrap();
rt.block_on(async {
let api = BoardGameGeekApi::new();
let collection = api.collection().get_owned("bluebearbgg").await;
match collection {
Ok(collection) => println!("bluebearbgg owns {} games.", collection.items.len()),
Err(e) => println!("Error: {e}"),
}
})