bz.js

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);
});
About these ads

One Comment on “bz.js”

  1. Vivek says:

    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.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 27 other followers