{"id":24422761,"url":"https://github.com/loudkode/backblazesdk","last_synced_at":"2025-04-12T07:19:06.158Z","repository":{"id":35093356,"uuid":"202461640","full_name":"loudKode/BackBlazeSDK","owner":"loudKode","description":"a .Net wrapper library for BackBlaze.com API (Backblaze B2 Cloud Storage)","archived":false,"fork":false,"pushed_at":"2022-12-08T02:16:08.000Z","size":392,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T07:19:00.649Z","etag":null,"topics":["api","backblaze","backblaze-api","backblaze-b2","backblaze-b2-buckets","backblaze-storage","backblaze-storage-service","cloud","csharp","dotnet","dotnet-core","dotnet-framework","dotnet-standard","sdk","vbnet"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/loudKode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-15T02:42:59.000Z","updated_at":"2022-11-12T20:13:22.000Z","dependencies_parsed_at":"2023-01-15T13:40:34.176Z","dependency_job_id":null,"html_url":"https://github.com/loudKode/BackBlazeSDK","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loudKode%2FBackBlazeSDK","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loudKode%2FBackBlazeSDK/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loudKode%2FBackBlazeSDK/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loudKode%2FBackBlazeSDK/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loudKode","download_url":"https://codeload.github.com/loudKode/BackBlazeSDK/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248530601,"owners_count":21119601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","backblaze","backblaze-api","backblaze-b2","backblaze-b2-buckets","backblaze-storage","backblaze-storage-service","cloud","csharp","dotnet","dotnet-core","dotnet-framework","dotnet-standard","sdk","vbnet"],"created_at":"2025-01-20T10:15:04.763Z","updated_at":"2025-04-12T07:19:06.132Z","avatar_url":"https://github.com/loudKode.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"## BackBlazeSDK\n\n`Download:`[https://github.com/loudKode/BackBlazeSDK/releases](https://github.com/loudKode/BackBlazeSDK/releases)\u003cbr\u003e\n`Help:`[https://github.com/loudKode/BackBlazeSDK/wiki](https://github.com/loudKode/BackBlazeSDK/wiki)\u003cbr\u003e\n`NuGet:`\n[![NuGet](https://img.shields.io/nuget/v/DeQmaTech.BackBlazeSDK.svg?style=flat-square\u0026logo=nuget)](https://www.nuget.org/packages/DeQmaTech.BackBlazeSDK)\u003cbr\u003e\n\n\n**Features**\n- [x] Assemblies for .NET 4.5.2 and .NET Standard 2.0 and .NET Core 2.1\n- [x] Just one external reference (Newtonsoft.Json)\n- [x] Easy installation using NuGet\n- [x] Upload/Download tracking support\n- [x] Proxy Support\n- [x] Upload/Download cancellation support\n- [ ] Support Upload/Download pause/resume \n\n# List of functions:\n\u003e * ListBuckets\n\u003e * List\n\u003e * Upload\n\u003e * FileMetadata\n\u003e * DeleteBucket\n\u003e * CreateBucket\n\u003e * CopyFile\n\u003e * DeleteFile\n\u003e * UpdateBucket\n\u003e * PublicBucket_DownloadFile\n\u003e * PublicBucket_DownloadFileAsStream\n\u003e * PrivateBucket_DownloadFile\n\u003e * PrivateBucket_DownloadFileAsStream\n\u003e * PublicBucket_GetDirectUrl\n\n\n# Code simple:\n```vb.net\nDim tkn = Await BackBlazeSDK.Authentication.GetToken_24Hrs(\"key_id\", \"app_id\")\nDim cLENT As BackBlazeSDK.IClient = New BackBlazeSDK.BClient(tkn.apiUrl, tkn.authorizationToken, New BackBlazeSDK.ConnectionSettings With {.CloseConnection = True, .TimeOut = TimeSpan.FromMinutes(80), .Proxy = New BackBlazeSDK.ProxyConfig With {.SetProxy = True, .ProxyIP = \"127.0.0.1\", .ProxyPort = 80, .ProxyUsername = \"user\", .ProxyPassword = \"123456\"}})\n\nAwait cLENT.ListBuckets(tkn.accountId)\nAwait cLENT.List(\"bucket_id\")\nAwait cLENT.CopyFile(\"file_id\", \"bucket_id\", \"mypic.jpg\")\nAwait cLENT.CreateBucket(tkn.accountId, \"bucket_name\", BackBlazeSDK.Utilitiez.BucketTypesEnum.allPublic)\nAwait cLENT.DeleteBucket(tkn.accountId, \"bucket_id\")\nAwait cLENT.DeleteFile(\"file_id\", \"mypic.jpg\")\nAwait cLENT.FileMetadata(\"file_id\")\nAwait cLENT.UpdateBucket(tkn.accountId, \"bucket_id\", BackBlazeSDK.Utilitiez.BucketTypesEnum.allPrivate)\nDim CancelToken As New Threading.CancellationTokenSource()\nDim _ReportCls As New Progress(Of BackBlazeSDK.ReportStatus)(Sub(r) Console.WriteLine($\"{r.BytesTransferred}/{r.TotalBytes}\" + r.ProgressPercentage + If(r.TextStatus, \"Downloading...\")))\nAwait cLENT.PrivateBucket_DownloadFile(\"file_id\", \"C:\\Down\", \"mypic.jpg\", _ReportCls, CancelToken.Token)\nAwait cLENT.Upload(\"C:\\Down\\mypic.jpg\", BackBlazeSDK.Utilitiez.UploadTypes.FilePath, \"bucket_id\", \"mypic.jpg\", BackBlazeSDK.Utilitiez.SHA1FileHash(IO.File.ReadAllBytes(\"C:\\Down\\mypic.jpg\")), _ReportCls, CancelToken.Token)\ncLENT.PublicBucket_GetDirectUrl(tkn.downloadApiUrl, \"My_Bucket\", \"mypic.jpg\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floudkode%2Fbackblazesdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floudkode%2Fbackblazesdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floudkode%2Fbackblazesdk/lists"}