Walter_ Posted June 30, 2019 Share Posted June 30, 2019 Hello again, i've made a few scripts to automate my usual day of trading in TF2 to the point where i only have to do about 20-30% of what i used to do. I wanted to lower it even more by utilizing backpack.tf's delete listings api endpoint ( token based ) but there is something terribly wrong with it. Not only is it not documented but is also acknowledged by bptf staff that it is in fact undocumented. But it gets worse. I managed to find an image of a discord message by bptf staff that included confirmation that it was undocumented + parameters needed for the api. So i got to work and managed to provide perfect inputs but the api refuses to delete my listings and insists they don't exist. My function: My function's console output. This is bptf saying the listing doesn't exist for given item. Happens for every id i throw at it. I have tried original_id and current_id. Proof that listing exists from bptf html. I could have gone for _inventory but not everyone knows what that is. Link to comment Share on other sites More sharing options...
Walter_ Posted June 30, 2019 Author Share Posted June 30, 2019 Also what happened to my account :C Link to comment Share on other sites More sharing options...
Zeus_Junior Posted June 30, 2019 Share Posted June 30, 2019 Take for example your listing for the The Pocket Purrer For sell orders, you need the assetid of the item if i recall correctly. The full listing id would be appid_assetid And for buy orders, its actually this id: appid_steamid_listinghash Just remove 'listing-' You can get ids using the classified search api. https://backpack.tf/api/classifieds/search/v1?key=x&steamid=76561198144346135 or the my listings api https://backpack.tf/api/classifieds/listings/v1?token=usertoken Let me know if this works for you! Link to comment Share on other sites More sharing options...
Walter_ Posted July 16, 2019 Author Share Posted July 16, 2019 On 6/30/2019 at 3:33 PM, Zeus_Junior said: Take for example your listing for the The Pocket Purrer For sell orders, you need the assetid of the item if i recall correctly. The full listing id would be appid_assetid And for buy orders, its actually this id: appid_steamid_listinghash Just remove 'listing-' You can get ids using the classified search api. https://backpack.tf/api/classifieds/search/v1?key=x&steamid=76561198144346135 or the my listings api https://backpack.tf/api/classifieds/listings/v1?token=usertoken Let me know if this works for you! Thanks for responding! so i forgot the 440_ in front of the ID. I was used to not doing so because of api's like classifieds/list/v1 not requiring it. :C I did find a workaround in the past few days but haven't used it yet due to how it uses steam's openID system and i dont understand anything about how to refresh OAuth tokens and such basically just copies the thing that happens when you click on "delete listing" on browser. EDIT: I just tested adding the TF2 appid ( 440 ) in front of the ID and it works! Link to comment Share on other sites More sharing options...
Zeus_Junior Posted July 16, 2019 Share Posted July 16, 2019 Great! OAuth doesnt really work as far as i know, most people cant really figure it out. Using old apis like this one https://backpack.tf/api/docs/create_listings still works Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.