如何使用蒸汽API接收蒸汽液位。http://api.steampowered.com/IPlayerService/GetSteamLevel/v1/?key=&steamid=
$link = file_get_contents("https://api.steampowered.com/IPlayerService/GetSteamLevel/v1/?key=".$steamauth['apikey']."&steamids=".$_SESSION['steamid']);
$result = json_decode($link, true);
$_SESSION['steam_level'] = $result['response']['player_level'];
我尝试了上面的链接,但是没有走..或者我做错了什么。请我需要帮助..如果您给我解决方案,请用php写。
答案 0 :(得分:0)
这是var_dump($ result)的输出
array(1){[“” response“] => array(1){[” player_level“] => int(34)}}