halo_api 0.3.0

Unofficial Halo Infinite REST API client for Rust (CSR, service record, match history, and more).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
mod common;
use halo_api::clients::hi::models::PlaylistId;
#[tokio::main]
async fn main() -> Result<(), common::ExampleError> {
    let (_, halo) = common::halo_infinite_client()?;
    let (_, player) = common::player_xuid(&halo).await?;
    println!(
        "{:#?}",
        halo.playlist_csr(PlaylistId::RANKED_ARENA, &player).await?
    );
    Ok(())
}