Quantcast
Channel: The Echo Nest Developer Forum
Viewing all articles
Browse latest Browse all 1582

Get analyzer info from not known song

$
0
0

Fixed. Thanks for all the help! Figured posting the solution might help somebody else.

$url='http://developer.echonest.com/api/v4/track/profile?api_key=myapi&format=json&id='.$id;

   $post = array(
    );
 $ch = curl_init();
    $timeout = 5;
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
    $response = curl_exec($ch);

    $result=json_decode($response,true);
     var_dump($result);

Viewing all articles
Browse latest Browse all 1582

Trending Articles