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

A PHP wrapper class for My.jdownloader.org API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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");
?>

or use this method to initialize the class

<?php
    require_once 'myjdapi_class.php';

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

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

Add links to jdownloader and start it

<?php
    require_once 'myjdapi_class.php';

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

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

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:PHP 100.0%