My.JDownloader.Api
2.1.1
See the version list below for details.
dotnet add package My.JDownloader.Api --version 2.1.1
NuGet\Install-Package My.JDownloader.Api -Version 2.1.1
<PackageReference Include="My.JDownloader.Api" Version="2.1.1" />
paket add My.JDownloader.Api --version 2.1.1
#r "nuget: My.JDownloader.Api, 2.1.1"
// Install My.JDownloader.Api as a Cake Addin #addin nuget:?package=My.JDownloader.Api&version=2.1.1 // Install My.JDownloader.Api as a Cake Tool #tool nuget:?package=My.JDownloader.Api&version=2.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.
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();
_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 | 14/14 calls done
- AddAccount(email, password) : boolean
- AddBasicAuth(BasicAuthObject) : boolean
- DisableAccounts(accountIds) : boolean
- EnableAccounts(accountIds) : boolean
- GetPremiumHosterUrl(hoster) : string
- ListAccounts(ListAccountRequestObject) : ListAccountResponseObject[]
- ListBasicAuth() : ListBasicAuthResponseObject[]
- ListPremiumHoster() : string[]
- ListPremiumHosterUrls() : Dictionary<string, string>
- RefreshAccounts(accountIds) : boolean
- RemoveAccounts(accountIds) : boolean
- RemoveBasicAuths(basicAuthIds) : boolean
- SetUsernameAndPassword(accountId, email, password) : boolean
- UpdateBasicAuth(BasicAuthObject) : boolean
DownloadController | 6/6 calls done
- ForceDownload(linkIds[], packageIds[]) : boolean
- Start() : boolean
- Stop() : boolean
- Pause(pause) : boolean
- GetCurrentState() : string
- GetSpeedInBps() : long
DownloadsV2 | 2/x calls done
- GetStopMark() : long
- GetStopMarkedLink() : StopMarkedLinkReturnObject
Extensions | 5/5 calls done
- Install(extensionId) : boolean
- IsEnabled(className) : boolean
- IsInstalled(extensionId) : boolean
- List(ExtensionRequestObject) : ExtensionResponseObject[]
- SetEnabled(className, enabled) : boolean
Extraction | 2/7 calls done
- AddArchivePassword(password) : boolean
- CancelExtraction(controllerId) : boolean
JD | 6/6 calls done
- DoSomethingCool()
- GetCoreRevision() : int
- RefreshPlugins() : boolean
- Sum() : int
- Uptime() : long
- Version() : long
LinkCrawler | 1/1 calls done
- IsCrawling() : boolean
LinkGrabberV2 | 19/30 calls done
- Abort() : boolean
- Abort(jobId) : boolean
- AddLinks(AddLinkRequestObject) : boolean
- AddContainer(containerType, content) : boolean
- ClearList() : boolean
- CleanUp(linkIds, packageIds, action, mode, selection) : boolean
- GetChildrenChanged(structureWatermark) : long
- GetDownloadFolderHistorySelectionBase() : string[]
- GetDownloadUrls(linkIds, afterLinkId, destPackageId) : Dictionary<string, List<long>>
- GetPackageCount() : int
- GetVariants(linkId) : GetVariantsReturnObject[]
- IsCollecting() : boolean
- MoveLinks(linkIds, afterLinkId, destPackageId) : boolean
- MovePackages(packageIds, afterDestPackageId) : boolean
- MoveToDownloadList(linkIds, packageIds) : boolean
- MoveToNewPackage(linkIds, packageIds, newPackageName, downloadPath) : boolean
- QueryLinks(maxResults) : QueryLinksResponseObject
- QueryPackages(QueryPackagesRequestObject) : List<QueryPackagesResponseObject>
- SetDownloadDirectory(directory, packageIds[]) : boolean
System | 7/7 calls done
- ExitJd()
- GetStorageInfos(path) : StorageInfoReturnObject[]
- GetSystemInfos() : SystemInfoReturnObject
- HibernateOS()
- RestartJd()
- ShutdownOS()
- StandbyOS()
Update | 3/3 calls done
- IsUpdateAvailable() : boolean
- RestartAndUpdate()
- RunUpdateCheck()
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");
if (_JDownloaderHandler.IsConnected)
{
var devices = _JDownloaderHandler.GetDevices();
if (devices.Count = 0)
return;
var deviceHandler = _JDownloaderHandler.GetDeviceInstance(devices[0]);
deviceHandler.AccountV2.AddAccount("mega.co.nz", "test123", "test123");
}
Product | Versions 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.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 | net40 is compatible. net403 was computed. net45 is compatible. net451 was computed. net452 was computed. 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. |
-
.NETCoreApp 2.0
- Newtonsoft.Json (>= 11.0.2)
-
.NETFramework 4.0
- Newtonsoft.Json (>= 11.0.2)
-
.NETFramework 4.5
- Newtonsoft.Json (>= 11.0.2)
-
.NETFramework 4.6
- Newtonsoft.Json (>= 11.0.2)
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 | 1,192 | 7/24/2022 |
2.4.4 | 442 | 5/26/2022 |
2.4.3 | 480 | 7/28/2021 |
2.4.2 | 897 | 10/20/2019 |
2.4.1 | 678 | 4/13/2019 |
2.4.0 | 688 | 1/28/2019 |
2.3.0 | 641 | 1/25/2019 |
2.2.0 | 684 | 1/24/2019 |
2.1.1 | 703 | 1/4/2019 |
2.0.0 | 1,365 | 5/25/2018 |
1.2.0 | 829 | 5/20/2018 |
1.1.1 | 919 | 5/18/2018 |
1.1.0 | 890 | 5/18/2018 |
1.0.1 | 1,026 | 5/16/2018 |
1.0.0 | 965 | 5/15/2018 |