javascript musiXmatch API library for nodejs
JavaScript
Latest commit 6efb28f Sep 30, 2016 @pilu committed on GitHub Update README.md
Permalink
Failed to load latest commit information.
lib/mXm tabs to soft tabs Feb 13, 2012
test tabs to soft tabs Feb 13, 2012
.gitignore initial import Feb 11, 2012
LICENSE added license file Feb 12, 2012
README.md Update README.md Sep 30, 2016
package.json added license url Feb 12, 2012

README.md

musiXmatch API library for NodeJS

Examples

var util  = require("util");
var mXm   = require("musixmatch");

mXm.Config.API_KEY = "YOUR_API_KEY";

var successCallback = function(modelOrCollection) {
  console.log("Success:");
  console.log("  " + util.inspect(modelOrCollection));
};

var errorCallback = function(response) {
  console.log("Error callback:");
  console.log("  " + util.inspect(response));
};

mXm.API.getTrack(TRACK_ID, successCallback, errorCallback);
mXm.API.getLyrics(LYRICS_ID, successCallback, errorCallback);
mXm.API.getArtist(ARTIST_ID, successCallback, errorCallback);
mXm.API.getAlbum(ALBUM_ID, successCallback, errorCallback);
mXm.API.getSubtitle(TRACK_ID, successCallback, errorCallback);
mXm.API.searchTrack({q: QUERY}, successCallback);