Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
javascript musiXmatch API library for nodejs
branch: master
Failed to load latest commit information.
lib/mXm tabs to soft tabs
test tabs to soft tabs
.gitignore initial import
LICENSE added license file
README.md updated README and package.json
package.json added license url

README.md

musiXmatch API library for NodeJS

Installation

npm install -g musixmatch

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);
Something went wrong with that request. Please try again.