I need album covers for my PHP site, but something no longer works.
I used JSON to get the album ID, and then I used this ID to get the album art.
My problem is that I am trying to decode json from the site, but I no longer get any result (it worked before ...).
Here is the code (getting JSON and decoding it):
$req="http://api-v3.deezer.com/1.0/search/track/?q=".$deezer."&index=0&nb_items=8&output=json";
$result = file_get_contents($req);
$testjson=json_decode($result,true);
source
share