Hello. Can you please tell me how to accept the exchange offer programmatically? All I could achieve was to find an active offer and pull out their id. But how can the acceptance of these proposals be realized? I know that this is possible, there are a lot of sites with such a system, but, unfortunately, there is absolutely no information about this anywhere. Can someone help?

PS I make an application for Google Chrome, so I don’t need to think about authorization.

1 answer 1

Sobsna can be accepted by simple Post-request at https://steamcommunity.com/tradeoffer/ "tradeId" / accept where tradeId is, in fact, the offer ID.

In the sending header you need to specify:

 {"sessionid", ...}, {"serverid", ...}, {"tradeofferid", ...}, {"partner", ...}, {"captcha", ...} 

The first two parameters should be stored in a container that is collected during authorization. The third and fourth parameters will be obtained through IEconService , and Captcha, by default, string.empty