valorant_api 0.3.14

A library for interacting with the ingame Valorant-API.
Documentation
1
2
3
4
5
6
7
8
use valorant_api::enums::platform::Platform;
use valorant_api::utils::credentials_manager::CredentialsManager;

pub async fn get_credentials_manager() -> reqwest::Result<CredentialsManager> {
    let access_token = std::env::var("ACCESS_TOKEN").unwrap();
    let entitlements_token = std::env::var("ENTITLEMENTS_TOKEN").unwrap();
    CredentialsManager::new_with_tokens(Platform::PC, access_token, entitlements_token).await
}