资 源 简 介
```
/* @author Adam Boulton
* A demonstration of some of the features that the Java Sabnzbd API is capable of.
*/
package jsabnzbdapi;
import com.ibot.sabnzbd.SabServer;
import com.ibot.sabnzbd.Slot;
import java.io.IOException;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
try {
SabServer server = SabServer.connect("http://mySabServer:8081", "11119fb7dccc09e5cfbb5dac11021111");
String outputTemplate = "Status: %s
"
+ "ETA: %s
"
+ "Queue size: %s
"
+ "Queue size remaining: %s
"
+ "Speed: %s
"
+ "Time left: %s
"
+ "Uptime: %s
";
String output = String.format(outp