DeQmaTech.BackBlazeSDK
1.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package DeQmaTech.BackBlazeSDK --version 1.0.0
NuGet\Install-Package DeQmaTech.BackBlazeSDK -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="DeQmaTech.BackBlazeSDK" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DeQmaTech.BackBlazeSDK --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DeQmaTech.BackBlazeSDK, 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.
// Install DeQmaTech.BackBlazeSDK as a Cake Addin #addin nuget:?package=DeQmaTech.BackBlazeSDK&version=1.0.0 // Install DeQmaTech.BackBlazeSDK as a Cake Tool #tool nuget:?package=DeQmaTech.BackBlazeSDK&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Functions:
https://github.com/loudKode/BackBlazeSDK/blob/master/IClient.cs
Example:
Dim tkn = Await BackBlazeSDK.GetToken.GetToken_24Hrs("xxxxxxxxx", "xxxxxxx")
Dim cLENT As BackBlazeSDK.IClient = New BackBlazeSDK.BClient("https://api002.backblazeb2.com", "xxxxxxxxxxxx")
Dim RSLT = Await cLENT.List(xxxxxxxxxx)
Dim RSLT = Await cLENT.ListBuckets("xxxxxxxxx")
Dim RSLT = Await cLENT.CreateBucket("xxxxxxx", "tztbukt", BackBlazeSDK.BBZutilities.BucketTypesEnum.allPublic)
Dim RSLT = Await cLENT.CopyFile("xxxxxx", "xxxxxxx", "gogo.png")
Dim RSLT = Await cLENT.DeleteFile("xxxxxxx", "0ap5.jpeg")
Dim RSLT = cLENT.PublicBucket_GenerateDirectUrl("https://f002.backblazeb2.com", "xxxxx", "289.mp4")
Dim frm As New DeQma.FileFolderDialogs.VistaFolderBrowserDialog With {.ShowNewFolderButton = True, .UseDescriptionForTitle = True, .Description = "Select PATH to download to"}
If frm.ShowDialog = DialogResult.OK AndAlso Not String.IsNullOrEmpty(frm.SelectedPath) Then
Dim DownloadCancellationToken As New Threading.CancellationTokenSource()
Dim progressIndicator_ReportCls As New Progress(Of BackBlazeSDK.ReportStatus)(Sub(ReportClass As BackBlazeSDK.ReportStatus)
Label1.Text = String.Format("{0}/{1}", ISisFunctions.Bytes_To_KbMbGb.SetBytes(ReportClass.BytesTransferred), ISisFunctions.Bytes_To_KbMbGb.SetBytes(ReportClass.TotalBytes))
ProgressBar1.Value = CInt(ReportClass.ProgressPercentage)
Label2.Text = If(CStr(ReportClass.TextStatus) Is Nothing, "Downloading...", CStr(ReportClass.TextStatus))
End Sub)
Await cLENT.PublicBucket_DownloadFile("xxxxxxxx", frm.SelectedPath, "CloseW20.png", progressIndicator_ReportCls, New BackBlazeSDK.ProxyConfig With {.SetProxi = False, .ProxiIP = "194.135.216.178", .ProxiPort = "56805"}, 60, DownloadCancellationToken.Token)
End If
Try
Dim frm As New DeQma.FileFolderDialogs.VistaOpenFileDialog With {.Multiselect = False, .Title = "Select image/s to upload"}
If frm.ShowDialog = DialogResult.OK AndAlso Not String.IsNullOrEmpty(frm.FileName) Then
Dim UploadCancellationToken As New Threading.CancellationTokenSource()
Dim progressIndicator_ReportCls As New Progress(Of BackBlazeSDK.ReportStatus)(Sub(ReportClass As BackBlazeSDK.ReportStatus)
Label1.Text = String.Format("{0}/{1}", ISisFunctions.Bytes_To_KbMbGb.SetBytes(ReportClass.BytesTransferred), ISisFunctions.Bytes_To_KbMbGb.SetBytes(ReportClass.TotalBytes))
ProgressBar1.Value = CInt(ReportClass.ProgressPercentage)
Label2.Text = If(CStr(ReportClass.TextStatus) Is Nothing, "Uploading...", CStr(ReportClass.TextStatus))
End Sub)
Dim fle = Await cLENT.Upload(frm.FileName, BackBlazeSDK.BClient.UploadTypes.FilePath, "xxxxxxxxx", IO.Path.GetFileName(frm.FileName), progressIndicator_ReportCls, Nothing, UploadCancellationToken.Token)
DataGridView1.Rows.Add(fle.fileName, fle.fileId, fle.contentType, fle.CreatedDate, ISisFunctions.Bytes_To_KbMbGb.SetBytes(fle.Size))
End If
Catch ex As BackBlazeSDK.BackBlazeException
MsgBox(ex.Message)
End Try
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net452 is compatible. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.5.2
- Newtonsoft.Json (>= 11.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.