This is a library to abstract the Echonest API
-
edit
composer.json
file with following contents:"require": { "echonest/echonest": "dev-master" }
-
install composer via
curl -s http://getcomposer.org/installer | php
(on windows, download http://getcomposer.org/installer and execute it with PHP) -
run
php composer.phar install
Configure the service
use Echonest\Service\Echonest;
Echonest::configure($apiKey);
Run a query
$response = Echonest::query('artist', 'biographies', array(
'id' => 'ARH6W4X1187B99274F',
'results' => '1',
'start' => '0',
'license' => 'cc-by-sa'
));