Im new to php and json and usage of API's. Im on a big data project and I want to create a web application that retrieves information from the API in order to create predictive analysis.
I tried to use this code to retrieve data but all I see is a blank page. http://20ff.net/index.php
<html>
<head>
<title>RIOT API SBOX</title>
</head>
<body>
<?php
$json = json_decode(file_get_contents('https://euw.api.pvp.net/api/lol/euw/v2.2/matchhistory/31827832?rankedQueues=RANKED_SOLO_5x5&api_key=key'), true);
var_dump(json_decode($json));
echo $json[0]['firstBloodKill'];
?>
</body>
</html>
Yes, I removed the api key myself, with key its not working also. Please help me out, are there any basic tutorials how to return information in JSON between php tags?