Advertisement
kiieranc

Untitled

Mar 27th, 2016
1,407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. <?php
  2. $inventory = file_get_contents("http://steamcommunity.com/profiles/".$steamprofile['steamid']."/inventory/json/730/2");
  3.  
  4. $myarrayInv = json_decode($inventory, true);
  5.  
  6. foreach($myarrayInv['rgInventory'] as $item)
  7. {
  8.  
  9. $GetItem = file_get_contents("http://api.steampowered.com/ISteamEconomy/GetAssetClassInfo/v0001/?key=718122D6E2216D7B718189D4FB77F0C7&appid=730&class_count=1&classid0=".$item['classid']);
  10.  
  11. $myarrayGetInv = json_decode($GetItem, true);
  12. foreach($myarrayGetInv['result'][$item['classid']] as $item_A)
  13. {
  14. echo @$item_A['name'];
  15. ?>
  16.  
  17. <?php
  18. }
  19. ?>
  20. <br>
  21. <?php
  22. }
  23.  
  24. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement