I am looking for a steam web API to get info about games. Im trying to use this: $api_url_rust = "http://steamspy.com/api.php?request=appdetails&appid=252490";
$json2 = json_decode(file_get_contents($api_url_rust), true);
But I keep getting an error: Failed to open stream: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP
I don't think it has something with the way I have PHP installed. I tried running it on my schools server and I still gives me an error. Any idea how I can fix this or another API I could use? I also have other steam web API's that work fine.
Heres an example of one this is working correctly: $api_url_playerData = "http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=$api_key&steamids=$steamid";
$json = json_decode(file_get_contents($api_url_playerData), true);
echo "Account Name: ". $json["response"]["players"][0]["personaname"] . "-----";