My.JDownloader.Api 2.4.5

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

// Install My.JDownloader.Api as a Cake Tool
#tool nuget:?package=My.JDownloader.Api&version=2.4.5

My.Jdownloader.Api .NET Wrapper by Cr1TiKa7

This is an simple wrapper for the official My.JDownloader.Api written in c#. It's an rewritten and extended version of https://github.com/noone2407/MyJDownloaderApi.

Currently it supports: .NET 4.0, .NET 4.5, .NET 4.6 and .NETCore 2.0

Feel free to request missing calls, bugs or suggestions for improvements.

Usage

First of all you need an instance of the JDownloaderHandler

JDownloaderHandler _jdownloaderHandler = new JDownloaderHandler("YOURAPPKEY");
_jdownloaderHandler.Connect("YOURMYJDOWNLOADERUSERNAME", "YOURMYJDOWNLOADERPASSWORD");
//Alternaitve
JDownloaderHandler _jdownloaderHandler = new JDownloaderHandler("YOURMYJDOWNLOADERUSERNAME", "YOURMYJDOWNLOADERPASSWORD", "YOURAPPKEY");

The JDownloaderHandler contains the following methods:

  • Connect(email, password) : boolean
  • Reconnect() : boolean
  • Disconnect() : boolean
  • GetDevices() : List<DeviceObject>

After you successfully connected to the api you can get your active devices like this:

var devices = jdownloaderHandler.GetDevices();

Now that you got your devices you can call the methods of the namespaces on the device:

var device = devices[0];
//device.<namespace>.<method>();
device.Jd.DoSomethingCool();

Changelog

Version 2.4.5

Added:

  • setComment call to the DownloadsV2 and LinkgrabberV2 namespace (Thanks to jeffward01)

Fixed:

  • Cleanup endpoint

Version 2.4.3

Added:

  • OverridePackagizer Property to the AddLinkRequest class (Thanks to devocalypse)
  • SaveTo Property to the LinkQueryRequest class (Thanks to tprivaterep)

Fixed:

  • Wrong endpoint for LinkGrabberV2.IsCollecting (Thanks to devocalypse)
Namespaces

For a better overview, the calls are split into different namespaces. So far the library contains the following namespaces and methods:

  • Accounts | 11/12 calls done

  • AccountsV2 | 14/14 calls done

  • Captcha | 7/7 calls done

  • CaptchaForward | 2/2 calls done

  • Config | 8/8 calls done

  • DownloadController | 6/6 calls done

  • DownloadsV2 | 4/26 calls done

  • Extensions | 5/5 calls done

  • Extraction | 7/7 calls done

  • JD | 6/6 calls done

  • LinkCrawler | 1/1 calls done

  • LinkGrabberV2 | 19/30 calls done

  • System | 7/7 calls done

  • Update | 3/3 calls done

Samples

Here is a simple sample code which shows you how to connect, get a device handler and how to call a method:

JDownloaderHandler _JDownloaderHandler = new JDownloaderHandler("YOUREMAIL","YOURPASSWORD", "YOURAPPKEY");
if (_JDownloaderHandler.IsConnected)
{
    var devices = _JDownloaderHandler.GetDevices();
    if (devices.Count = 0)
    return;
    
    var deviceHandler = _JDownloaderHandler.GetDeviceHandler(devices[0]);
	//If you want to use the JDownloader API endpoint to connect to your device then you can call the GetDeviceHandler method like this:
    var deviceHandler = _JDownloaderHandler.GetDeviceHandler(devices[0], true);
    deviceHandler.AccountV2.AddAccount("mega.co.nz", "test123", "test123");
}
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 is compatible.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Framework net46 is compatible.  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.

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
2.4.5 661 7/24/2022
2.4.4 404 5/26/2022
2.4.3 442 7/28/2021
2.4.2 873 10/20/2019
2.4.1 637 4/13/2019
2.4.0 652 1/28/2019
2.3.0 611 1/25/2019
2.2.0 653 1/24/2019
2.1.1 664 1/4/2019
2.0.0 1,301 5/25/2018
1.2.0 791 5/20/2018
1.1.1 879 5/18/2018
1.1.0 849 5/18/2018
1.0.1 985 5/16/2018
1.0.0 941 5/15/2018