首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C# > net-nzbmatrixapi

net-nzbmatrixapi

  • 资源大小:34.51 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

.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

文 件 列 表

Properties
AssemblyInfo.cs
API.cs
APIRequest.cs
APIResponse.cs
NZB.cs
NZBMatrix.cs
NZBMatrixAPI.csproj

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP