Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Beatlegger/Transmission.API.RPC

Transmission RPC API C#
https://github.com/Beatlegger/Transmission.API.RPC

transmission transmission-rpc

Last synced: about 2 months ago
JSON representation

Transmission RPC API C#

Awesome Lists containing this project

README

        

Transmission-RPC-API
===========================

![.NET Core](https://github.com/Beatlegger/Transmission.API.RPC/workflows/.NET%20Core/badge.svg)
![Nuget](https://img.shields.io/nuget/v/Transmission.API.RPC)

[Official Transmission RPC specs](https://github.com/transmission/transmission/blob/master/extras/rpc-spec.txt)

C# implementation of the Transmission RPC API.

| Command | Not Implemented | Implemented|
| -------------------- |:-:|:-:|
| torrent-start | | x |
| torrent-start-now | | x |
| torrent-stop | | x |
| torrent-verify | | x |
| torrent-reannounce | | x |
| torrent-set | | x |
| torrent-get | | x |
| torrent-add | | x |
| torrent-remove | | x |
| torrent-set-location | | x |
| torrent-rename-path | | x |
| session-set | | x |
| session-get | | x |
| session-stats | | x |
| blocklist-update | | x |
| port-test | | x |
| session-close | | x |
| queue-move-top | | x |
| queue-move-up | | x |
| queue-move-down | | x |
| queue-move-bottom | | x |
| free-space | | x |

How to use
-------------

Install Nuget Package: `PM> Install-Package Transmission.API.RPC`

```C#
using Transmission.API.RPC.Entity;

// URL might look like "schema://host:port/transmission/rpc" for example "https://website.com:9091/transmission/rpc"
var client = new Client("URL", "PARAM_SESSION_ID", "PARAM_LOGIN", "PARAM_PASS");

var sessionInfo = client.GetSessionInformation();
var allTorrents = client.TorrentGet(TorrentFields.ALL_FIELDS);
//<...>
```