steam_miniprofile/lib.rs
1pub use miniprofile::{AvatarSize, MiniProfile, State};
2pub use steamid::get_current_steam_id;
3
4mod miniprofile;
5mod steamid;
6
7pub struct MiniProfileRequestor {
8 client: reqwest::Client,
9}
10
11impl MiniProfileRequestor {
12 pub fn new() -> Self {
13 Self {
14 client: reqwest::Client::new(),
15 }
16 }
17
18 pub async fn get(&self, steamid: u64) -> anyhow::Result<MiniProfile> {
19 MiniProfile::get(steamid, &self.client).await
20 }
21}