My.JDownloader.Api 1.1.1

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

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

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.

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();
_jdownloaderHandler.Connect("YOURMYJDOWNLOADERUSERNAME", "YOURMYJDOWNLOADERPASSWORD");
//Alternaitve
JDownloaderHandler _jdownloaderHandler = new JDownloaderHandler("YOURMYJDOWNLOADERUSERNAME", "YOURMYJDOWNLOADERPASSWORD");

The JDownloaderHandler contains the following methods:

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

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

  • AccountsV2
    • AddAccount(device, email, password) : boolean
    • EnableAccounts(device, accountIds) : boolean
    • DisableAccounts(device, accountIds) : boolean
    • ListAccounts(device, ListAccountRequestObject) : ListAccountResponseObject[]
    • ListPremiumHosterUrls(device) : Dictionary<string, string>
    • RefreshAccounts(device, accountIds) : boolean
    • RemoveAccounts(device, accountIds) : boolean
    • SetUsernameAndPassword(device, accountId, email, password) : boolean
  • DownloadController
    • Start(device) : boolean
    • Stop(device) : boolean
    • Pause(device, pause) : boolean
    • GetCurrentState(device) : string
  • LinkgrabberV2
    • AddLinks(device, AddLinkRequestObject) : boolean
    • AddContainer(device, containerType, content) : boolean
    • ClearList(Device) : boolean
    • GetPackageCount(Device) : int
    • IsCollecting(device) : boolean
    • QueryLinks(device, maxResults) : CrawledLinkDataObject
Samples

To get all devices that are currently connected to your My.JDownloader account:

var devices = _jdownloaderHandler.GetDevices();

To add links to the linkcollector:

_jdownloaderHandler.LinkgrabberV2.AddLinks(
    devices[0],
    new AddLinkRequestObject
    {
        Links = "www.testurl.com;www.testurl2.com",
        PackageName = "Test Package"
    });

To start downloading:

_jdownloaderHandler.DownloadController.Start(devices[0]);
Product Compatible and additional computed target framework versions.
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  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.

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 677 7/24/2022
2.4.4 404 5/26/2022
2.4.3 442 7/28/2021
2.4.2 876 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,302 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 986 5/16/2018
1.0.0 941 5/15/2018

ADDED: RefreshAccounts call (AccountsV2)
ADDED: ListPremiumHosterUrls call (AccountsV2)
ADDED: ListAccounts call (AccountsV2)
ADDED: Pause call (DownloadController)
ADDED: GetCurrentState (DownloadController)