genius-api
by Joakim Ahrlin
node.js client for the Genius API
uses ES6 promises to avoid callback hell.
installation
$ npm install genius-api --save
usage
more information about the different options can be found in the Genius API docs
var api = ;var genius = processenvGENIUS_CLIENT_ACCESS_TOKEN; //get annotationgenius; //get referents by song_id, with optionsgenius; //get referents by web_page_id, with optionsgenius; //get songgenius; //get artistgenius; //get web page, with optionsgenius; //searchgenius; //error handling á la promisegenius;
tests
$ git clone https://github.com/jahrlin/genius-api.git$ cd genius-api$ GENIUS_CLIENT_ACCESS_TOKEN={ACCESS_TOKEN} mocha