Skip to content

michalkow/node-jamendo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jamendo API client

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.

Install

$ npm install jamendo

Use

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/'
}

Supported methods

All read methods are supported, see http://developer.jamendo.com/v3.0#readmethods-list

All write methods are currently not supported.

Run tests

$ npm test

Run Grunt (jslint, docs)

$ grunt

Constructor settings

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
});

Documentation

API documentation is built by grunt and stored in the public/docs directory

About

Simple Jamendo API v3 client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%