TorboxNET 1.0.0

dotnet add package TorboxNET --version 1.0.0
                    
NuGet\Install-Package TorboxNET -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TorboxNET" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TorboxNET" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="TorboxNET" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TorboxNET --version 1.0.0
                    
#r "nuget: TorboxNET, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package TorboxNET@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TorboxNET&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=TorboxNET&version=1.0.0
                    
Install as a Cake Tool

TorboxNET

Torbox .NET wrapper library written in C#

Supports torrent related API calls at the moment.

Usage

Create an instance of TorboxNETClient for each user you want to authenticate. If you need to support multiple users you will need to create a new instance every time you switch users.

var client = new TorboxNETClient("api key");

Pass in the Api Key for the user. You can find it in your user settings page

The method naming followings the API documentation as close as I could:

var client = new TorboxNETClient(="api key");

// https://www.postman.com/wamy-dev/workspace/torbox/request/29572726-062b717f-4866-4fc0-a3e6-6e4c2520eefa
var result = await client.Torrent.CreateTorrentAsync(magnet);

Authentication

Each user has its own API key, which can be found here: https://torbox.app/settings.

Unit tests

The unit tests are not designed to be ran all at once, they are used to act as a test client.

Set an env variable called "TORBOX_APIKEY" for your api token

Some functions will need replacement ID's to work properly.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 166 7/11/2024