Without authorization, you can pull the user picture?

That is, the user is registered on the site. And already has a stim id.

Is it possible to pull a Steam avatar by its Steam ID? that is, he will not make an entrance to Steam.

    1 answer 1

    Nashol way who should:

    XXXXXXXXXXXXXXXXXXX - API KEY

    $String = file_get_contents("http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=XXXXXXXXXXXXXXXXXX&steamids='.$friend[steam_id].'"); $new = $String; //Текст, который читается... $newcr = ''; //Строка, которая будет выводится... $newm = explode('",', $new); //Делим текст на слова... $space = ' '; //А этим пробелом можно словать соединять... А ещё это можно будет поменять на любой другой символ... $newcr = $newcr.$space.$newm[4]; //И пихаем все слова в одну строку... $str = $newcr; $str = str_replace(array('"avatarmedium": "'), '', $str); $mail = trim(strrchr($str, ' ')); echo '<img src='.$mail.'></img>';