Crates.io | steam-workshop-api |
lib.rs | steam-workshop-api |
version | 0.6.0 |
source | src |
created_at | 2021-06-04 18:16:36.714266 |
updated_at | 2024-08-01 00:04:02.905702 |
description | Provides an API wrapper for the steam workshop interfaces (IPublishedFileService and ISteamRemoteStorage) with the addition of proxy and api key support |
homepage | |
repository | https://github.com/Jackzmc/rs-steam-workshop-api |
max_upload_size | |
id | 406224 |
size | 22,155 |
A rust api library for the steam web workshop api
use steam_workshop_api::Workshop;
let mut workshop = Workshop::new();
workshop.set_api_key(Some("yourapikey".to_string()));
let fileids = vec!['121221044', '1643520526'];
let details: Vec<WorkshopItem> = match workshop.get_published_file_details(&fileids) {
Ok(details) => details,
Err(err) => {
eprintln!("Failed to get file info");
}
};