A wrapper for the Steam Web API in Rust.
This is based on the Steamworks Web API Reference and Better Steam Web API Documentation.
This crate is highly experimental and unfinished so you are advised to be cautious when using it in your projects.
For a list of all supported API interfaces and endpoints, please see ENDPOINTS.md.
```rust use std::env; use steam_rs::{Steam, SteamId};
async fn main() { // Get the Steam API Key as an environment variable let steamapikey = env::var("STEAMAPIKEY").expect("Missing an API key")
// Initialize the Steam API client
let steam = Steam::new(steam_api_key);
// Request the recently played games of SteamID 76561197960434622
let steam_id = SteamId::new(76561197960434622);
let recently_played_games = steam.get_recently_played_games(steam_id, None).await.unwrap();
// Print the total count of the user's recently played games
println!("{}", recently_played_games.total_count);
} ```
This project is in early stages of development, so bug reports, suggestions, and pull requests are highly appreciated!
This project is licensed under the MIT License.