jamendo
is a simple Jamendo API wrapper.
It only makes HTTP requests with the well known request module.
All read methods, descibed at http://developer.jamendo.com/v3.0#readmethods-list are supported.
$ npm install jamendo
var Jamendo = require('jamendo');
var jamendo = new Jamendo({ ... });
jamendo.albums({ id: 33 }, function(error, data){
console.log(data.results[0]);
});
{ id: '33',
name: 'Simple Exercice',
releasedate: '2004-12-28',
artist_id: '5',
artist_name: 'Both',
image: 'http://imgjam.com/albums/s0/33/covers/1.200.jpg',
zip: 'http://storage-new.newjamendo.com/download/a33/mp32/'
}
All read methods are supported, see http://developer.jamendo.com/v3.0#readmethods-list
All write methods are currently not supported.
$ npm test
$ grunt
You can set the following options in the settings
parameter
var jamendo = new Jamendo({
client_id : no default // Specify your client_id
// see http://developer.jamendo.com/v3.0#obtain_client_id
protocol : 'http' // HTTP protocol to use, http or https
version : 'v3.0' // Use the specified API version
debug : false // Print the whole response object and body in the console
});
API documentation is built by grunt
and stored in the public/docs
directory