Skip to content

tofika/my.jdownloader.org-api-php-class

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A PHP wrapper class for My.jdownloader.org API.

Using my.jdownloader.org-api-php-class

First, you need JDownloader 2 Beta installed on your PC or other hardware, visit http://jdownloader.org/download/offline.

Setup JDownloader for my.jdownloader.org in Settings/My.JDownloader.

If you already registered at my.jdownloader.org than simply fill fields Username/Email, Password and Device Name, otherwise press button "Go to My.JDownloader.org" and complete registration.

Now you can initialize the class

<?php
    require_once 'myjdapi_class.php';

    $j = new MYJDAPI();
?>

Connect to my.jdownloader.org

<?php
    require_once 'myjdapi_class.php';

    $j = new MYJDAPI();
    $j -> connect( "EMAIL", "PASSWORD");
    $j -> setDeviceName("YOUR_DEVICE_NAME");
?>

or use this method to initialize the class

<?php
    require_once 'myjdapi_class.php';

    $j = new MYJDAPI( "EMAIL", "PASSWORD", "YOUR_DEVICE_NAME");
?>

Available methods: connect, reconnect, disconnect, enumerateDevices, getDirectConnectionInfos, callAction, addLinks, queryLinks and more maybe later.

Add links to jdownloader and start it

<?php
    require_once 'myjdapi_class.php';

    $j = new MYJDAPI( "EMAIL", "PASSWORD", "YOUR_DEVICE_NAME");
    $j -> addLinks("LINKS", "PACKAGE_NAME");
?>
<?php
    require_once 'myjdapi_class.php';

    $j = new MYJDAPI( "EMAIL", "PASSWORD", "YOUR_DEVICE_NAME");
    $j -> queryLinks();
?>

Copyright (c) 2014 Anatoliy Kultenko "tofik".

Released under the BSD License, see http://opensource.org/licenses/BSD-3-Clause

About

A PHP wrapper class for My.jdownloader.org API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages