<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Example</title>
</head>
<body>
<?php
// Get data
$url = "https://igocam.com/rest/api?api_key=[your API key]";
// Curl
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_URL,$url);
$result=curl_exec($ch);
curl_close($ch);
$json = json_decode( $result, true );
foreach ($json as $key => $value){
$name = $value["name"];
$permanent_link = $value["permanent_link"];
//Save to your database, here we echo as a test
echo $name;
echo "<br>";
echo $permanent_link;
echo "<br>";
}
?>
</body>
</html>