foxhole-api

Crates.iofoxhole-api
lib.rsfoxhole-api
version0.3.0
sourcesrc
created_at2021-10-31 03:46:09.473643
updated_at2023-12-22 23:14:10.535308
descriptionA rust wrapper for the Foxhole War API.
homepagehttps://github.com/bahildebrand/foxhole-api
repositoryhttps://github.com/bahildebrand/foxhole-api
max_upload_size
id474587
size22,081
Blake Hildebrand (bahildebrand)

documentation

README

Foxhole API

An unofficial rust wrapper for the Foxhole War API.

MIT licensed Crates.io Docs Actions Workflow

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.

Commit count: 34

cargo fmt