bz.js
Posted: March 31, 2011 Filed under: mozilla 1 Comment »bz.js is a JavaScript wrapper for the Bugzilla REST API (<3 <3 <3). Like most HTTP REST API wrappers, it is almost unnecessary, but not quite. Works in browser, node, and Addon SDK packages.
var bugzilla = bz.createClient();
bugzilla.getBug(678223, function(error, bug) {
if(!error)
alert(bug.summary);
});
had installed noje.js on Fed 16. Installed bz via npm. still getting an error stating “exports is not defined “. Having trouble in making sense of what is “bzapi” and what it does. Can you please help me in this regard.