Hello i will get with 1 call a multiplie game-Achievmentlist from steam because i takes to many time for mulitplie calls.
usually i get the game list from the user and then i call for every game via foreach the xml file.
$url5 = http://steamcommunity.com/id/projacore/games/?xml=1';
print $url5;
$data5 = file_get_contents($url5);
$xml5 = simplexml_load_string($data5);
foreach ($xml5->games->children() as $item5){
$dasgame = htmlentities($item5->appID);
$url8 = 'http://api.steampowered.com/ISteamUserStats/GetSchemaForGame/v0002/?key=' . $steam_api . '&appid=' . $item5->appID . '&l=german&format=xml';
$data8 = file_get_contents($url8);
$xml8 = simplexml_load_string($data8);
$url11 = 'http://api.steampowered.com/ISteamUserStats/GetPlayerAchievements/v0001/?appid=' . $dasgame . '&key=' . $steam_api . '&steamid=' . $item5->appID . '&l=german&format=xml';
$data11 = file_get_contents($url11);
$xml11 = simplexml_load_string($data11);
//and the rest of the code
}
it takes so many time because when the user has 50 games it call 50 times data from steam.
now i will ask can i get multiplie Achievments with 1 call?
like this :
http://api.steampowered.com/ISteamUserStats/GetPlayerAchievements/v0001/?appid=240,400,10&key=' . $steam_api . '&steamid=' . $steamid64 . '&l=german&format=xml
thanks ahead
references: