Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

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

Notifications You must be signed in to change notification settings

latop2604/UTorrentClientApi

Repository files navigation

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);

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published