valorant_api 0.3.14

A library for interacting with the ingame Valorant-API.
Documentation
mod utils;

use uuid::Uuid;
use valorant_api::enums::region::Region;

use crate::utils::common::get_credentials_manager;

#[tokio::main]
async fn main() {
    let http_client = reqwest::Client::new();
    let credentials_manager = get_credentials_manager()
        .await
        .expect("Error while getting credentials manager");

    let match_id = Uuid::parse_str("3100c02b-17d2-4adb-97b5-e45dee67d292").expect("Invalid UUID");
    let region = Region::EU;
    let result =
        valorant_api::get_match_details_v1(&credentials_manager, &http_client, region, &match_id)
            .await;
    println!("Result: {result:#?}");
    assert!(result.is_ok());
}