Crate foxhole_api[−][src]
Expand description
Foxhole War API.
This crate is a wrapper around the Foxhole War API. This crate requires the use of async code, as well as the Tokio runtime.
Usage 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();
}Modules
Structs
Client for fetching data from the war API.
Enums
Used to specify the shard of the api