I use to use echonest analyzer to upload tracks and get some audio characteristics out of them.
I did this by sending a curl request.
I realise the API has now mitigated to Spotify and I wonder if I can still upload tracks to analyze, instead of only analyzing tracks given their Spotify ID.
I used to use this method:
$post = array(
"url"=>$title,
"api_key"=>"myAPI",
"format"=>"json"
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_URL, "http://developer.echonest.com/api/v4/track/upload");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
$response = curl_exec($ch);
$result=json_decode($response,true);
$status=$result['response']['track']['status'];
Is there a similar way to do this with Spotify? Thanks.
I can use an offline feature analyzer, but I have used EchoNest Analyzer for training my original model here.