Crates.io | steam_store_api |
lib.rs | steam_store_api |
version | 0.1.0 |
source | src |
created_at | 2024-01-04 02:01:44.683348 |
updated_at | 2024-01-04 02:01:44.683348 |
description | Safe Rust bindings for the Steam Store API |
homepage | |
repository | https://github.com/wr8fdy/steam_store_api |
max_upload_size | |
id | 1088002 |
size | 74,075 |
A wrapper for the Steam Store API in Rust.
This is based on the unofficial Steam Storefront resource, which provides methods to retrieve product information from the platform.
#
use anyhow::Result;
use steam_store_api::prelude::*;
#[tokio::main]
async fn main() -> Result<()> {
let client = SteamBuilder::new()
.with_country_code("US")
.with_language(&Language::English)
.build()?;
let app = client.app(&219990_u64).await?;
println!("{:#?} - {:#?}", &app.app_id, &app.name);
anyhow::Ok(())
}