r6stats_client 0.2.3

Client for the r6stats API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use r6stats_client::{Client, Platform};
use std::env;

#[tokio::main]
async fn main() {
    let token = env::var("R6STATS_TOKEN").expect("API Token not found in env");
    let client = Client::new(&token).expect("Error creating client");

    let stats = client
        .stats()
        .generic("pengu.g2", Platform::Pc)
        .await
        .expect("Error getting stats");

    println!("{:#?}", stats);
}