so...
I started to develop simple tf2 inventory and get API.
I'm getting the defindexs from tf2 api
$link = file_get_contents("http://api.steampowered.com/IEconItems_440/GetPlayerItems/v0001/?key=" . $api_key . "&steamid=" . $id . "&format=json");
$myarray = json_decode($link, true);
print $myarray['result']['items']['0']['defindex'];
Schema from here:
file_get_contents("http://api.steampowered.com/IEconItems_440/GetSchema/v0001/?key=" . $api_key . "")
;
I printed $myarray and result is: 261
So, I have 2 questions:
How I can print all defindexs to my page?
and
How I can replace defindexs with name of weapon from GetSchema?