Zreex Posted Monday at 02:47 PM Report Posted Monday at 02:47 PM (edited) Steam introduced an update some time ago that exposes both float and seed values. Could you advise how to access these values using this module, without creating an external request to the Steam Web API? #getAssetsProperties = async (contextId) => { try { const { data } = await axios.get( `${SteamWrapper.#apiOrigin}/IEconService/GetInventoryItemsWithDescriptions/v1`, { params: { 'access_token': this.#accessToken, 'steamid': String(this.#userClient.steamID), 'appid': 730, 'contextid': contextId, 'get_asset_properties': true, }, }, ); const raw = data?.response?.asset_properties; const assetProperties = Array.isArray(raw) ? raw : []; return [assetProperties, null]; } catch (error) { return [null, error]; } } Edited Monday at 03:17 PM by Zreex Quote
Dr. McKay Posted 1 hour ago Report Posted 1 hour ago Not currently possible but it's on my list of things to do Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.