mod utils;
use crate::utils::common::{get_credentials_manager, get_http_client};
use std::collections::HashMap;
use uuid::Uuid;
use valorant_api::enums::region::Region;
#[tokio::main]
async fn main() {
let http_client = get_http_client().expect("Error while creating http client");
let credentials_manager = get_credentials_manager(&http_client)
.await
.expect("Error while getting credentials manager");
let puuid = Uuid::parse_str("ee89b4d9-13d0-5832-8dd7-eb5d8806d918").expect("Invalid UUID");
let region = Region::EU;
let queries = HashMap::new();
let result = valorant_api::get_competitive_updates_v1(
&credentials_manager,
&http_client,
region,
&puuid,
queries,
)
.await;
println!("Result: {:#?}", result);
assert!(result.is_ok());
}