1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! Unofficial Halo Infinite REST API client for Rust: CSR/rank lookups, service records, match
//! history, and more.
//!
//! This crate is not affiliated with, endorsed by or supported by Microsoft.
//!
//! # Quick start
//!
//! ```no_run
//! # async fn example() -> Result<(), Box<dyn std::error::Error>> {
//! use std::sync::Arc;
//!
//! use halo_api::clients::hi::models::PlaylistId;
//! use halo_api::auth::HaloAuthClient;
//! use halo_api::clients::hi::{HaloInfiniteClient, Player};
//! use xbox::auth::LegacyPasswordProvider;
//! use xbox::XboxClient;
//!
//! let xbox_client = Arc::new(XboxClient::new(LegacyPasswordProvider::new(
//! "my-username",
//! "my-password",
//! )));
//! let auth = HaloAuthClient::from_xbox_client(xbox_client.clone());
//! let halo = HaloInfiniteClient::new(auth);
//!
//! let xuid = xbox_client.gamertag_to_xuid("Some Gamertag").await?;
//! let csr = halo.playlist_csr(PlaylistId::RANKED_ARENA, &Player::from(&xuid)).await?;
//!
//! println!("{csr:?}");
//! # Ok(())
//! # }
//! ```
pub use ;