SABnzbd Interface for Node.js


NodeJS interface for SABnzbd


Since I just started this it's pretty basic at this point. You'll receive a parsed JSON object but the app does handle errors somewhat. Please report issues!


First, create a new client

var nodezb = require('nodezb')
var nzbClient = new nodezb({
    host: 'localhost',
    port: '8000',
    key: 'your-api-key'

Use it! Errors are parsed out of the returned objects. If there is no error you get the object in its entirety so you can fall back on SABnzbd's documentation if need be.

nzbClient.getSimpleQueue(function(err, result){
    // DO THINGS