Jump to content

refresh your backpack via API


Medic Bot

Recommended Posts

I have recently resurrected my old trade bot, fixed some things and improved others but i've noticed that it does NOT refresh it's backpack on the website (therefore its unable to resell what it buys).

Back when i used to run this trade bot i used the same call that you send with the browser when you refresh your backpack manually from the website (https://backpack.tf/_inventory/STEAMID?&source=steam&fallback=true) as suggested by an user on the forums centuries ago and because oauth is a disgrace.

It used to work flawlessy, now it gets some cloudflare stuff when making that call so i suppose bots have been disallowed from using it and i wonder: is oauth the only option now or is there another one that i'm not aware of?

Link to comment
Share on other sites

A POST to /api/inventory/{steamid}/refresh with post data

{
	"token": "yourusertoken"
}

Returns 

{
    "current_time": 1604960875,
    "last_update": 1604960872,
    "timestamp": 1604960872,
    "next_update": 1604961052,
    "refresh_interval": 180
}

 

Should do the trick

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...