valorant_api 0.3.14

A library for interacting with the ingame Valorant-API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
mod utils;

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 region = Region::EU;
    let result = valorant_api::get_content_v3(&credentials_manager, &http_client, region).await;
    println!("Result: {result:#?}");
    assert!(result.is_ok());
}