cleanups, tests, clippy

This commit is contained in:
Robin Appelman 2023-11-16 16:54:43 +01:00
commit a9a3751067
16 changed files with 5932 additions and 117 deletions

18
examples/test.rs Normal file
View file

@ -0,0 +1,18 @@
use main_error::MainResult;
use std::env::args;
use steamid_ng::SteamID;
use ugc_scraper::UgcClient;
#[tokio::main]
async fn main() -> MainResult {
let client = UgcClient::new();
let id = args().nth(1).expect("no steam id provided");
let id = SteamID::try_from(id.as_str()).expect("invalid steam id provided");
let player = client.player(id).await?;
dbg!(player.teams);
let membership = client.player_team_history(id).await?;
dbg!(membership);
Ok(())
}