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);
-
Notifications
You must be signed in to change notification settings - Fork 0
javascript musiXmatch API library for nodejs
License
gravityblast/musixmatch-node
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
javascript musiXmatch API library for nodejs
Resources
License
Stars
Watchers
Forks
Releases
No releases published