Skip to content

onegambler/uTorrent-Web-API-Wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uTorrent-Web-API-Wrapper

Java wrapper for the µTorrent Web API.

Project Description

This library allows java developers to easily access the µTorrent Web API and control it using Java. It provides a clean facade object over the µTorrent JSON API, and supports automatic updating and caching of results.

It has been developed using Java 8. It implements all the operations allowed through the Web API:

  • List torrents
  • Add torrents via URL and File
  • Operations on torrents (start, pause, stop, delete, etc...)
  • Retrieve and update client properties
  • Set files priority

Set up

Enable the web UI in µTorrent: http://help.utorrent.com/customer/portal/articles/1573941

How to use

ConnectionParams connectionParams = ConnectionParams.builder()
            .withScheme("http")
            .withCredentials("username", "password")
            .enableAuthentication(true)
            .withAddress("host.com", 8080)
            .withTimeout(1500)
            .create();
UTorrentWebAPIClient client = UTorrentWebAPIClient.getClient(connectionParams);

Set<Torrent> torrents = client.getAllTorrents();

client.addTorrent(new File("filePath"));

client.stopTorrent("torrent_hash");

About

Java client for the uTorrent Web API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages