Zreex Posted December 8 Report Posted December 8 (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 December 8 by Zreex Quote
Dr. McKay Posted December 13 Report Posted December 13 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.