4 releases (2 breaking)
0.3.0 | Dec 22, 2023 |
---|---|
0.2.1 | Jan 13, 2022 |
0.2.0 | Nov 3, 2021 |
0.1.0 | Oct 31, 2021 |
#1122 in Asynchronous
20KB
406 lines
Foxhole API
An unofficial rust wrapper for the Foxhole War API.
Dependencies
This library requires the use of tokio as an async runtime.
Usage
[dependencies]
foxhole-api = "0.2"
Example
use foxhole_api::Client;
#[tokio::main]
async fn main() {
// The default shard is Live-1
let client = Client::default();
let war_data = client.war_data().await.unwrap();
let map_names = client.map_names().await.unwrap();
let static_map_data = client.map_data_static("TheFingersHex".to_string()).await.unwrap();
let dynamic_map_data = client.map_data_dynamic("TheFingersHex".to_string()).await.unwrap();
}
Contributing
PRs and feature request are always welcome!
Foxhole is a registered trademark of Siege Camp.
Dependencies
~4–15MB
~219K SLoC