HI guys, started using SABnzbd a couple of weeks back, fantastic work guys. I have started development of a Java API (I believe one does not exist?). For more information please visit my blog for now: http://aboulton.blogspot.com/2010/02/sa ... a-api.html
Currently got a few mates doing some tests and I will be releasing it soon. I hope some of you will find this useful. Here is my "hello world" example of utilising the API:
String[] nzbs =
{"http://www.newzbin.com/browse/post/5569239/nzb",
"http://www.newzbin.com/browse/post/5568352/nzb"};
String sabURL= "http://sabserverurl";
SABnzbd mySabServer= new SABnzbd(sabURL, "uname", "pwd");
System.out.println("Current download speed: " + mySabServer.getDownloadSpeed());
for(String nzb: nzbs)
{
mySabServer.download(nzb);
}
List queue = mySabServer.getQueue();
if (queue.isEmpty()) {
System.out.println("No download entries");
} else {
for (QueueEntry qu : queue) {
System.out.println("---- New Entry --- ");
System.out.println("Category: " + qu.getCategory());
System.out.println("Name: " + qu.getName());
System.out.println("Reamining " + qu.getRemain());
System.out.println("Total:" + qu.getTotal());
System.out.println("ETA: " + qu.getEta());
}
}
Also, I am considering putting together a client together for the BlackBerry, would people find this useful?
Cheers and keep up the great work guys!
Adam



