Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $url = 'http://steamcommunity.com/id/maksa988?xml=1';
- $stm = simplexml_load_file($url);
- echo $stm->steamID64;
- $keysteamid = '?key=9777215978730D3057650EA58233050F';
- $urljson = file_get_contents("http://api.steampowered.com/IEconItems_730/GetSchema/v2/".$keysteamid."");
- $json_decode = json_decode($urljson);
- foreach($json_decode->result->items as $predmet){
- echo $predmet->name;
- echo '<img src="'.$predmet->image_url.'">';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement