DeQmaTech.pCloudSDK 4.0.1

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

// Install DeQmaTech.pCloudSDK as a Cake Tool
#tool nuget:?package=DeQmaTech.pCloudSDK&version=4.0.1                

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

CodeMap:

codemap

Code simple:

Await pCloudSDK.Authentication.Register("name@domian.com", "123465#")
Await pCloudSDK.Authentication.GetAuthToken("name@domian.com", "123465#")

Try
    Dim client As pCloudSDK.IClient = New pCloudSDK.PClient("username", "password", New pCloudSDK.ConnectionSettings With {.CloseConnection = True, .TimeOut = TimeSpan.FromMinutes(80), .Proxy = New ProxyConfig With {.SetProxy = True, .ProxyIP = "127.0.0.1", .ProxyPort = 80, .ProxyUsername = "user", .ProxyPassword = "123456"}})

    ''Account
    Await client.Account.ChangeMail("newEmail@domain.com")
    Await client.Account.DeleteToken("tokenid")
    Await client.Account.GetCurrentServer
    Await client.Account.GetRegistrationPageUrl
    Await client.Account.IP
    Await client.Account.ListInvites
    Await client.Account.ListTokens
    Await client.Account.ResendActivationMail
    Await client.Account.UserInfo

    ''file
    Await client.Items.File(1234).AudioDirectUrl(128)
    Await client.Items.File(1234).ChangesHistory
    Await client.Items.File(1234).Checksum
    Await client.Items.File(1234).CompressAsync(6789, "myArchive.zip")
    Await client.Items.File(1234).Copy(6789, False, "newname")
    Await client.Items.File(1234).CopyThumbnail(6789, "800x600", pCloudSDK.Utilitiez.ExtEnum.jpeg, True, True, Nothing)
    Await client.Items.File(1234).Delete
    Await client.Items.File(1234).DirectUrl
    Await client.Items.File(1234).Move(6789, Nothing)
    Await client.Items.File(1234).Public(50, (1 * 1024 ^ 2))
    Await client.Items.File(1234).Rename("newname")
    Await client.Items.File(1234).Thumbnail("800x600", pCloudSDK.Utilitiez.ExtEnum.png, True)
    Await client.Items.File(1234).ThumbnailUrl("800x600", pCloudSDK.Utilitiez.ExtEnum.jpeg, True)
    Await client.Items.File(1234).UnCompressAsync(6789, "abcd")
    Await client.Items.File(1234).UnCompressTaskProgress("UnCompressAsync")
    Await client.Items.File(1234).VideoDirectUrl
    Await client.Items.File(1234).VideoResolutionUrls
    Await client.Items.File(1234).VideoToMp3(128)

    ''Files
    Await client.Items.Files(New List(Of Long) From {1234}).CompressAsync(6789, "myArchive.zip")
    Await client.Items.Files(New List(Of Long) From {1234}).Copy(6789, True)
    Dim CancelToken As New Threading.CancellationTokenSource()
    Dim _ReportCls As New Progress(Of pCloudSDK.ReportStatus)(Sub(r)
  Button1.Text = String.Format("{0}/{1}", (r.BytesTransferred), (r.TotalBytes))
  Button1.Text = CInt(r.ProgressPercentage)
  Button1.Text = If(CStr(r.TextStatus) Is Nothing, "Downloading...", CStr(r.TextStatus))
      End Sub)
    Await client.Items.Files(New List(Of Long) From {1234}).DownloadAsZip("C:\Users", "myArchive.zip", _ReportCls, CancelToken.Token)
    Await client.Items.Files(New List(Of Long) From {1234}).ThumbnailUrl("800x600", pCloudSDK.Utilitiez.ExtEnum.jpeg, True)

    ''Folder
    Await client.Items.Folder(6789).CompressAsync(9876, "myArchive.zip")
    Await client.Items.Folder(6789).CompressTaskProgress("CompressAsync")
    Await client.Items.Folder(6789).Copy(9876, True)
    Await client.Items.Folder(6789).Create("newfolder")
    Await client.Items.Folder(6789).CreateIfNotExists("newfolder")
    Await client.Items.Folder(6789).Delete
    Await client.Items.Folder(6789).DirectZipUrl("myArchive.zip")
    Await client.Items.Folder(6789).List
    Await client.Items.Folder(6789).ListSubFoldersTree
    Await client.Items.Folder(6789).ListWithoutFiles
    Await client.Items.Folder(6789).ListWithoutShared
    Await client.Items.Folder(6789).Move(9876)
    Await client.Items.Folder(6789).Public
    Await client.Items.Folder(6789).Rename("newfoldername")
    Await client.Items.Folder(6789).UploadLocal("C:\Users\fle.rar", pCloudSDK.Utilitiez.SentType.filepath, "fle.rar", True, _ReportCls, CancelToken.Token)
    Await client.Items.Folder(6789).UploadRemote("https://www.doman.com/mymov.mp4", "mymov.mp4")
    Await client.Items.Folder(6789).UploadRemoteAsync("https://www.doman.com/mymov.mp4")
    Await client.Items.Folder(6789).UploadRemoteMultiple(New List(Of String) From {{"https://www.doman.com/mymov.mp4"}, {"https://www.doman.com/mymov.mp4"}})
    Await client.Items.Folder(6789).UploadRemoteMultipleAsync(New List(Of String) From {{"https://www.doman.com/mymov.mp4"}, {"https://www.doman.com/mymov.mp4"}})
    Await client.Items.Folder(6789).UploadRemoteReportProgress("UploadRemoteMultipleAsync")
    Await client.Items.Folder(6789).ZipBytesArray

    ''Folders
    Await client.Items.Folders(New List(Of Long) From {6789}).CompressAsync(9876, "myArchive.zip")

    ''all files & folders
    Await client.Items.ListAll()

    ''Playlists
    Await client.Playlists(5432).Add(New List(Of Long) From {1234, 1234})
    Await client.Playlists(5432).ChangeFilePosition(1234, 7, 9)
    Await client.Playlists(5432).Clear
    Await client.Playlists(Nothing).Create("playlistName", pCloudSDK.Utilitiez.PlaylistTypeEnum.All)
    Await client.Playlists(5432).Delete
    Await client.Playlists(Nothing).List(pCloudSDK.Utilitiez.PlaylistTypeEnum.AudioOnly, pCloudSDK.Utilitiez.OutputEnum.PlaylistsWithoutFiles, 10, 2)
    Await client.Playlists(5432).Metadata
    Await client.Playlists(5432).Public
    Await client.Playlists(5432).Remove(New List(Of Long) From {1234})
    Await client.Playlists(5432).Rename("newPlaylistName")

    ''Publics
    Await client.Publics.AudioDirectUrl(New Uri("https://my.pcloud.com/#page=publink&code=PUBLIC_LINK_CODE"), 240)
    Await client.Publics.CopyThumbnail(New Uri("https://my.pcloud.com/#page=publink&code=PUBLIC_LINK_CODE"), 6789, "800x600", pCloudSDK.Utilitiez.ExtEnum.jpeg, True, True, Nothing)
    Await client.Publics.CopyZip(New Uri("https://my.pcloud.com/#page=publink&code=PUBLIC_LINK_CODE"), 6789, Nothing)
    Await client.Publics.DirectZipUrl(New Uri("https://my.pcloud.com/#page=publink&code=PUBLIC_LINK_CODE"), "myArchive.zip")
    Await client.Publics.DownloadAsZip(New Uri("https://my.pcloud.com/#page=publink&code=PUBLIC_LINK_CODE"), "C:\Users", _ReportCls, CancelToken.Token)
    Await client.Publics.FileInFolderDirectUrl(New Uri("https://my.pcloud.com/#page=publink&code=PUBLIC_LINK_CODE"), 1234)
    Await client.Publics.List()
    Await client.Publics.ListWithoutMetadata
    Await client.Publics.Metadata(New Uri("https://my.pcloud.com/#page=publink&code=PUBLIC_LINK_CODE"))
    Await client.Publics.SaveToMyAccount(New Uri("https://my.pcloud.com/#page=publink&code=PUBLIC_LINK_CODE"), 6789)
    Await client.Publics.SingleFileDirectUrl(New Uri("https://my.pcloud.com/#page=publink&code=PUBLIC_LINK_CODE"))
    Await client.Publics.Thumbnail(New Uri("https://my.pcloud.com/#page=publink&code=PUBLIC_LINK_CODE"), "800x600", pCloudSDK.Utilitiez.ExtEnum.jpeg, True)
    Await client.Publics.ThumbnailUrl(New Uri("https://my.pcloud.com/#page=publink&code=PUBLIC_LINK_CODE"), "800x600", pCloudSDK.Utilitiez.ExtEnum.jpeg, True)
    Await client.Publics.VideoResolutionUrls(New Uri("https://my.pcloud.com/#page=publink&code=PUBLIC_LINK_CODE"), 1234)

Catch ex As pCloudSDK.pCloudException
    MsgBox(ex.Message)
End Try
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 is compatible.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.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. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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
4.0.1 532 3/25/2020