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").await.unwrap();
let dynamic_map_data = client.map_data_dynamic("TheFingersHex").await.unwrap();
}
Modules§
- response_
types - Response types for all war api endpoints.
Structs§
- Client
- Client for fetching data from the war API.
Enums§
- Foxhole
ApiError - Shard
- Used to specify the shard of the api