babelshift / SteamWebAPI2

🎮 C# / .NET library that makes it easy to use the Steam Web API. It conveniently wraps around all of the JSON data and ugly API details with clean methods, structures and classes.
MIT License
263 stars 43 forks source link

EconItems #131

Open GeToNIX531 opened 2 years ago

GeToNIX531 commented 2 years ago

Hi guys, help me plz. How get user inventory. I tried to use: var steamEconomyInterface = webInterfaceFactory.CreateSteamWebInterface(new HttpClient()); But when called, a constructor error occurs. Of course, I was doing something wrong. How can I use the interface EconItems, for get user inventory? And how to work with the trading platform?

GeToNIX531 commented 2 years ago

var steamEconomyInterface = webInterfaceFactory.CreateSteamWebInterface(AppId.CounterStrikeGO, new HttpClient()); var inventory = await steamEconomyInterface.GetPlayerItemsAsync(account.Session.SteamID);

Error 410 (Gone). which means the page has been deleted. mb is bug?

babelshift commented 1 year ago

Hi guys, help me plz. How get user inventory. I tried to use: var steamEconomyInterface = webInterfaceFactory.CreateSteamWebInterface(new HttpClient()); But when called, a constructor error occurs. Of course, I was doing something wrong. How can I use the interface EconItems, for get user inventory? And how to work with the trading platform?

If you're still out there, I'll need more information about the nature of the error. Please provide more details.

var steamEconomyInterface = webInterfaceFactory.CreateSteamWebInterface(AppId.CounterStrikeGO, new HttpClient()); var inventory = await steamEconomyInterface.GetPlayerItemsAsync(account.Session.SteamID);

Error 410 (Gone). which means the page has been deleted. mb is bug?

While Valve does sometimes remove endpoints on their API without warning, I am not able to reproduce this issue. That method binds to the following endpoint, which appears to still be active.

https://api.steampowered.com/IEconItems_730/GetPlayerItems/v1

viktordanchev commented 6 months ago

This method is removed by Valve. Its not working anymore.