Heather's Paragraphs

bz.js

bz.js is a JavaScript wrapper for the Bugzilla REST API (<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);
});