Advertisement
Guest User

Untitled

a guest
Sep 21st, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1. <?
  2. $url = 'http://steamcommunity.com/id/maksa988?xml=1';
  3. $stm = simplexml_load_file($url);
  4.  
  5. echo $stm->steamID64;
  6.  
  7. $keysteamid = '?key=9777215978730D3057650EA58233050F';
  8.  
  9. $urljson = file_get_contents("http://api.steampowered.com/IEconItems_730/GetSchema/v2/".$keysteamid."");
  10. $json_decode = json_decode($urljson);
  11.  
  12. foreach($json_decode->result->items as $predmet){
  13.     echo $predmet->name;
  14.     echo '<img src="'.$predmet->image_url.'">';
  15. }
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement