BitPortSharp 1.0.6

dotnet add package BitPortSharp --version 1.0.6                
NuGet\Install-Package BitPortSharp -Version 1.0.6                
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="BitPortSharp" Version="1.0.6" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BitPortSharp --version 1.0.6                
#r "nuget: BitPortSharp, 1.0.6"                
#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.
// Install BitPortSharp as a Cake Addin
#addin nuget:?package=BitPortSharp&version=1.0.6

// Install BitPortSharp as a Cake Tool
#tool nuget:?package=BitPortSharp&version=1.0.6                

.NET Nuget Nuget GitHub License GitHub Repo stars GitHub forks

BitPortSharp

C# Wrapper for the BitPort API.

Example Usage

var configurationBuilder = new ConfigurationBuilder()
    .AddJsonFile("appsettings.json");
var configuration = configurationBuilder.Build();

var seriLog = new LoggerConfiguration()
    .Enrich.FromLogContext()
    .MinimumLevel.Information()
    .WriteTo.Async(a => a.Console(theme: AnsiConsoleTheme.Sixteen))
    .CreateLogger();
var factory = LoggerFactory.Create(logging =>
{
    logging.AddSerilog(seriLog);
});

var builder = new ContainerBuilder();
builder.RegisterInstance(configuration).As<IConfiguration>();
builder.RegisterInstance(factory).As<ILoggerFactory>();
builder.RegisterModule(File.Exists("token.json")
    ? new AutoFacModule(AuthorizationTypes.USER_CODE_FILE_AUTH)
    : new AutoFacModule(AuthorizationTypes.USER_CODE_AUTH));
var ctx = builder.Build();
var client = ctx.Resolve<BitPortClient>();

Endpoints supported

  • Cloud Folders
    • /v2/cloud/byPath
    • /v2/cloud/deletes
    • /v2/cloud/[<folderCode>]
    • /v2/cloud/[<folderCode>]/download-as-zip
    • /v2/cloud/<folderCode>
    • /v2/cloud/item/byPath
    • /v2/cloud/paused-videos
    • /v2/cloud/all-videos
    • /v2/cloud/paused-videos
  • Files
    • /v2/files/byPath
    • /v2/files/<fileCode>
    • /v2/files/deletes
    • /v2/files/<fileCode>/download
    • /v2/files/<fileCode>/stream
    • /v2/files/<fileCode>/stream-url
    • /v2/files/<fileCode>/stream/information
    • /v2/files/<fileCode>/subtitles
    • /v2/files/<fileCode>/subtitles/<key>
    • /v2/files/<fileCode>
    • /v2/files/<fileCode>/media.m3u8
    • /v2/files/<fileCode>/stream.m3u8
    • /v2/files/<fileCode>/sub/<subtitlesLangCode>/<subtitlesId>.m3u8
    • /v2/files/<fileCode>/sub/<subtitlesLangCode>/<subtitlesId>.webvtt
  • Me
    • /v2/me
  • Search in cloud
    • /v2/search/<term>
  • Transfers
    • /v2/transfers
    • /v2/transfers/<token>

License

MIT License

Copyright (c) 2023 Greg James

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
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.6 200 1/7/2024
1.0.5 136 1/7/2024
1.0.4 117 1/7/2024
1.0.3 124 1/7/2024
1.0.1 185 12/31/2023
1.0.0 129 12/31/2023