1
I’m trying to get some information from the API, I was able to filter some things, but for example, I’m trying to get to the 'preview' link to play 30 seconds of music and I can’t get to it, I’ve done so far :
<?php
$url = 'https://api.deezer.com/2.0/search?q=Alok';
$jsonStr = file_get_contents($url);
$jsonArr = json_decode($jsonStr, true);
$album = array();
foreach ($jsonArr['data'] as $row) {
$album[] = $row['album'];//['cover_xl'];
}
echo '<pre>'.print_r($album, true).'</pre>';
?>