I'm currently reading someones inventory through
$inventory = file_get_contents("http://steamcommunity.com/profiles/{$Steam64}/inventory/json/730/2");
this is analog to
file_get_contents("http://api.steampowered.com/ISteamUser/GetplayerSummaries/v0002/?key={$api}&steamids={$Steam64}");
here i get steamid64 with
{$steam->response->players[0]->personaname}
How to get a specific element in the inventory's .json
? For example:
{"success":true,"rgInventory":{"5904013658":{"id":"5904013658","classid":"469437901","instanceid":"302028390","amount":"1","pos":1},"5903531561":{"id":"5903531561","classid":"1293508920","instanceid":"0","amount":"1","pos":2},"5175566083":{"id":"5175566083","classid":"310780331","instanceid":"302028390","amount":"1","pos":3}
How to get classid? My solution above doesn't work for this :-(
aswell i need to read :
pos":22}},"rgCurrency":[],"rgDescriptions":{"469437901_302028390":{"appid":"730","classid":"469437901","instanceid":"302028390","icon_url":"-9a81dlWLwJ2UUGcV
The icon_url and other stuff in this part.
Greetings