资 源 简 介
.NET NZBMatrixAPI
NZBMatrix recently opened some functionality to their VIP users in the form of a text-based API.
For my own experimentation, and now for yours, I decided to write a .NET implementation of the API in C#.
Specification
The API is written in C# using .NET Framework 3.5.
Usage
Import the NZBMatrixAPI reference to your project.
```
using NZBMatrixAPI;
//...
NZBMatrix nzb = new NZBMatrix("foo", "bar"); //your credentials
// Search
NZB[] results = nzb.Search("Ubuntu");
foreach(NZB result in results)
{
Console.WriteLine(result.Name + " -> " + result.ID);
}
// Download NZB file
string fileLocation = @"C:";
System.IO.StreamReader reader = new StreamReader(nzb.GetNZBFile(result[0].ID));
System.IO.File.WriteAllText(fileLocation + result[0].Name + ".nzb", reader.ReadToEnd());
```
Notes
Apologies for the l