[opensource] DepositfilesSDK is a .Net library for Depositfiles.com file hosting serv 02-07-2020, 06:44 PM
#1
DepositfilesSDK
Download https://github.com/jamesheck2019/Deposit...K/releases
NuGet: https://www.nuget.org/packages/DeQmaTech...itfilesSDK
Help: https://github.com/jamesheck2019/DepositfilesSDK/wiki
Features
![[Image: 687474703a2f2f7777772e6d6564696166697265...672e6a7067]](https://camo.githubusercontent.com/32c7d97d3b08b2389d3ff0dde55bd06bbba0084b/687474703a2f2f7777772e6d65646961666972652e636f6d2f636f6e766b65792f36376237303463312f7771623476636a6a6e3166717230777a672e6a7067)
Code simple:
Download https://github.com/jamesheck2019/Deposit...K/releases
NuGet: https://www.nuget.org/packages/DeQmaTech...itfilesSDK
Help: https://github.com/jamesheck2019/DepositfilesSDK/wiki
Features
- Assemblies for .NET 4.5.2 and .NET Standard 2.0 and .NET Core 2.1
- Just one external reference (Newtonsoft.Json)
- Easy installation using NuGet
- Upload/Download tracking support
- Proxy Support
- Upload/Download cancellation support
- GetToken
- UserInfo
- LockFile
- UnlockMultipleFiles
- UnlockFile
- LockMultipleFiles
- RemoteUploadMultiple
- SearchFolder
- MoveMultipleFiles
- DeleteMultipleFolders
- DeleteMultipleFiles
- Search
- GetDownloadToken
- DeleteFile
- RenameFile
- MoveFile
- DeleteFolderWithoutContains
- RenameFolder
- DeleteFolder
- CreateNewFolder
- List
- ListFiles
- ListFolders
- Upload
- RemoteUpload
Code simple:
Quote:Dim cLENT As DepositfilesSDK.IClient = New DepositfilesSDK.DClient("username", "password", Nothing)
Await cLENT.UserInfo
Await cLENT.Root.CreateNewFolder("new folder")
Await cLENT.Root.ListFiles
Await cLENT.Root.ListFolders
Await cLENT.Root.SearchFiles("emy", SearchTypeEnum.Contains)
Await cLENT.Folders("folder_id").Delete
Await cLENT.Folders("folder_id").DeleteParentWithoutSubs
Await cLENT.Folders("folder_id").ListFiles
Await cLENT.Folders("folder_id").Rename("new name")
Await cLENT.Folders("folder_id").SearchFolder("emy", 0)
Dim cts As New Threading.CancellationTokenSource()
Dim _ReportCls As New Progress(Of DepositfilesSDK.ReportStatus)(Sub(ReportClass As DepositfilesSDK.ReportStatus) Console.WriteLine(String.Format("{0} - {1}% - {2}", String.Format("{0}/{1}", (ReportClass.BytesTransferred), (ReportClass.TotalBytes)), CInt(ReportClass.ProgressPercentage), ReportClass.TextStatus)))
Await cLENT.Folders("folder_id").Upload("c:\\myvid.mp4", UploadTypes.FilePath, "myvid.mp4", _ReportCls, cts.Token)
Await cLENT.Folders("folder_id").RemoteUpload(New Uri("https://domain.com/wat.mp4"))
Await cLENT.Folders("folder_id").RemoteUploadMultiple(New String() {"https://domain.com/wat.mp4", "https://domain.com/wat.mp4"})
Await cLENT.Files("file_id").Delete
Await cLENT.Files(Nothing).DeleteMultiple(New String() {"file_id", "file_id"})
Await cLENT.Files("file_id").GetDownloadToken
Await cLENT.Files("file_id").GetThumb
Await cLENT.Files("file_id").Lock("12345")
Await cLENT.Files("file_id").Unlock
Await cLENT.Files("file_id").Move("folder_id")
Await cLENT.Files(Nothing).MoveMultiple(New String() {"file_id", "file_id"}, "folder_id")
Await cLENT.Files("file_id").Rename("new name")


![[+]](https://sinister.li/images/modern/collapse_collapsed.png)