Jump to content

Inventory refresh API Help


choosingnamesarehard

Recommended Posts

Hello forums!

 

I'm mostly looking at the API for inventory refresh, but I'm having trouble getting it to work.

https://backpack.tf/api/index.html#/inventory/App\Controllers\API\Client\InventoryAPI::refresh

 

 

I've tried substituting {steamid} with my own steamID64, but it returns the 401 error, "Missing authorization header".

I've tried sending it my key and token, but still returns the same error and message.

 

 

The reason I need backpack.tf to refresh my inventory is because when I get an item that I didn't own before and try to sell it, it will return "Invalid item" and will not create a listing to sell said item. (BP.tf still thinks the item doesn't belong to me)

However, when I manually refresh my inventory from my profile page, I can create the listing.

 

I was wondering if anyone knows what I'm doing wrong?

 

Thanks!

Link to comment
Share on other sites

OAuth is very broken.

Have you tried sending a request to "https://backpack.tf/_inventory/" + steamid + "?time=&source=steam"?

Link to comment
Share on other sites

On 6/16/2019 at 3:46 PM, Zeus_Junior said:

Have you tried sending a request to "https://backpack.tf/_inventory/" + steamid + "?time=&source=steam"?

No, I haven't, but that seems to work! Thank you!

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...