OPSkins / trade-opskins-api

API docs for trade.opskins.com
41 stars 19 forks source link

Something wrong with 'GetUserInventoryFromSteamId' #22

Closed xkasianx closed 2 years ago

xkasianx commented 6 years ago

This request https://api-trade.opskins.com/ITrade/GetUserInventory/v1/?uid=1&app_id=1 gives user with steamid 76561197973578969, but this gives https://api-trade.opskins.com/ITrade/GetUserInventoryFromSteamId/v1/?steam_id=76561197973578969&app_id=1 404 ERROR.I'm doing something wrong or it's a bug ?

rannmann commented 6 years ago

Are you trying to load that second URL in your browser? It requires API Key authentication, so if you're either not providing any authentication, or you're providing cookie-based authentication, it will fail.

xkasianx commented 6 years ago

Yep,that was the problem.But why api sent me 404 instead of 401 or 400?

rannmann commented 6 years ago

It's not found for that type of request. We've been working on improving those HTTP errors over the past few days. I'll add this one to my list.

B3none commented 5 years ago

Yeah definitely return a 401 please.