activeshards/
activeshards.rs

1mod utils;
2
3use crate::utils::common::get_credentials_manager;
4
5#[tokio::main]
6async fn main() {
7    let http_client = reqwest::Client::new();
8    let credentials_manager = get_credentials_manager();
9
10    let name = "ManuelHexe";
11    let tag = "5777";
12    let result = valorant_api_official::get_accounts_by_name_v1(
13        &credentials_manager,
14        &http_client,
15        name,
16        tag,
17    )
18    .await;
19    assert!(result.is_ok());
20
21    let puuid = result.unwrap().puuid;
22
23    let result =
24        valorant_api_official::get_active_shards_v1(&credentials_manager, &http_client, &puuid)
25            .await;
26    println!("Result: {:#?}", result);
27    assert!(result.is_ok());
28}