| Crates.io | foxhole-api |
| lib.rs | foxhole-api |
| version | 0.3.0 |
| created_at | 2021-10-31 03:46:09.473643+00 |
| updated_at | 2023-12-22 23:14:10.535308+00 |
| description | A rust wrapper for the Foxhole War API. |
| homepage | https://github.com/bahildebrand/foxhole-api |
| repository | https://github.com/bahildebrand/foxhole-api |
| max_upload_size | |
| id | 474587 |
| size | 22,081 |
An unofficial rust wrapper for the Foxhole War API.
This library requires the use of tokio as an async runtime.
[dependencies]
foxhole-api = "0.2"
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();
}
PRs and feature request are always welcome!
Foxhole is a registered trademark of Siege Camp.