Skip to content
UTorrentClient Api is an extensible set of classes that use WebUI to manipulate µTorrent remotely.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
UTorrent.Api.UnitTest
UTorrentClientApi
.gitattributes
.gitignore
README.md
UTorrentClient.sln
UTorrentClientApi.nuspec

README.md

UTorrentClientApi

UTorrentClient Api is an extensible set of classes that use WebUI to manipulate µTorrent remotely.

Build status

Main features

  • CRUD operations
  • Add torrent in subpath
  • Cache
  • Extensibility
  • BEncoding Parser

Nuget page

Get started

Get all torrents

UTorrentClient client = new UTorrentClient("admin", "password");
var response = client.GetList();
List<Torrent> torrents = response.Result.Torrents;

Add new torrent from file

using(var file = new System.IO.File("mytool.torrent"))
{
    UTorrentClient client = new UTorrentClient("admin", "password");
    var response = client.PostTorrent(file, "tools");
    var torrent = response.AddedTorrent;
}

Send command

UTorrentClient client = new UTorrentClient("admin", "password");
string torrentId = "2D5B29C752CA5286D3B347591E7D08EAA13109CE";
client.StartTorrent(torrentId);
client.StopTorrent(torrentId);
client.PauseTorrent(torrentId);
client.RecheckTorrent(torrentId);
client.DeleteTorrent(torrentId);

List<string> torrentIds = new List<string>() { /* ... */ };
client.StopTorrent(torrentIds);
You can’t perform that action at this time.