Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $inventory = file_get_contents("http://steamcommunity.com/profiles/".$steamprofile['steamid']."/inventory/json/730/2");
- $myarrayInv = json_decode($inventory, true);
- foreach($myarrayInv['rgInventory'] as $item)
- {
- $GetItem = file_get_contents("http://api.steampowered.com/ISteamEconomy/GetAssetClassInfo/v0001/?key=718122D6E2216D7B718189D4FB77F0C7&appid=730&class_count=1&classid0=".$item['classid']);
- $myarrayGetInv = json_decode($GetItem, true);
- foreach($myarrayGetInv['result'][$item['classid']] as $item_A)
- {
- echo @$item_A['name'];
- ?>
- <?php
- }
- ?>
- <br>
- <?php
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement