JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 23.06.2015, 11:44
noone2407
Guest
 
Posts: n/a
Default How do I implement remote control with My jdownloader in c#

Hi,
I can see that JDownloader use local web interface and I can control it easily, but when I move to Jdownloader BETA then it is removed and replaced with My Jdownloader. But I can not see any document or sample code to do that.
Please I need some help. Thank you in advance.
Reply With Quote
  #2  
Old 23.06.2015, 15:18
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

Here you can get the current version of api doc
docs.google.com/document/d/1q5g_vqoUr2G6au9c3nUspUbkZ1eHgtGpmbjI30FhpAY/edit?pli=1

We can also provide JS/JAVA Version of client implementation. In case you need help/have questions about implementation, just contact us via support@jdownloader.org or in livechat (irc, freenode, #jdteam)
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 30.06.2015, 15:23
noone2407
Guest
 
Posts: n/a
Default

Hello,
I have written a wrapper in c#
Here is my project **External links are only visible to Support Staff****External links are only visible to Support Staff**
Thank you for you document and also the php wrapper
I hope it can help someone
Reply With Quote
  #4  
Old 30.06.2015, 15:26
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

Cool Was it easy? Do you need any help or have enough commands for what you need?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 30.06.2015, 15:27
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

Could you please change your appkey to
1.) email where we can reach you
or
2.) github project name
__________________
JD-Dev & Server-Admin
Reply With Quote
  #6  
Old 30.06.2015, 15:29
noone2407
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Jiaz View Post
Cool Was it easy? Do you need any help or have enough commands for what you need?
It is not too hard but it takes me 2 days.
I think now I can figure out all I need in the api document.
There are alot command I haven't implement in the code, I will update if I have time.:)
Reply With Quote
  #7  
Old 30.06.2015, 15:36
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

Thanks for contributing!
__________________
JD-Dev & Server-Admin
Reply With Quote
  #8  
Old 31.08.2015, 17:39
Christophe0110
Guest
 
Posts: n/a
Default JD wrapper

Dear noone2407,

I've seen in this thread that you created a wrapper in c#...

Do you think you could send me your project so I can adapt your code to my vb .net application?

Thanks.
Regards,
Christophe.
Reply With Quote
  #9  
Old 31.08.2015, 17:53
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

___://github.com/noone2407/MyJDownloaderApi
here you can find it
__________________
JD-Dev & Server-Admin
Reply With Quote
  #10  
Old 31.08.2015, 21:10
Christophe0110
Guest
 
Posts: n/a
Default

Thanks a lot !
Reply With Quote
  #11  
Old 31.08.2015, 22:03
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

You are welcome! Please let us know if you have coded something cool/nice
__________________
JD-Dev & Server-Admin
Reply With Quote
  #12  
Old 02.09.2015, 17:03
Christophe0110
Guest
 
Posts: n/a
Default

Do you also have a link to the php wrapper ?

Thanks.
Reply With Quote
  #13  
Old 02.09.2015, 17:07
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

github.com/tofika/my.jdownloader.org-api-php-class
__________________
JD-Dev & Server-Admin
Reply With Quote
  #14  
Old 02.09.2015, 19:23
Christophe0110
Guest
 
Posts: n/a
Default

Thanks.

But I can't make to work the "/linkgrabberv2/removeLinks" function ! :(
This function is not implemented in the C# wrapper and in the php wrapper and I don't understand the API documentation saying that :
====- removeLinks -====
Parameter: 1 - long[]1
Parameter: 2 - long[]2
Call: /removeLinks?long[]1&long[]2

What "long[]1" and "long[]2" stand for?
Yes, I understand that it's variable type but I don't understand what to do and what to put in it...

:(

Last edited by Christophe0110; 02.09.2015 at 20:13.
Reply With Quote
  #15  
Old 02.09.2015, 20:26
noone2407
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Christophe0110 View Post
Thanks.

But I can't make to work the "/linkgrabberv2/removeLinks" function ! :(
This function is not implemented in the C# wrapper and in the php wrapper and I don't understand the API documentation saying that :
====- removeLinks -====
Parameter: 1 - long[]1
Parameter: 2 - long[]2
Call: /removeLinks?long[]1&long[]2

What "long[]1" and "long[]2" stand for?
Yes, I understand that it's variable type but I don't understand what to do and what to put in it...

:(
So do I, that is why I haven't written that function yet. You can ask other programmer for specific api usage or read the java source code
Reply With Quote
  #16  
Old 02.09.2015, 20:30
Christophe0110
Guest
 
Posts: n/a
Default

Thanks for your reply noone2407 !

Do you know where i can find this java source code ? ^^
Reply With Quote
  #17  
Old 02.09.2015, 20:50
noone2407
Guest
 
Posts: n/a
Default

Here it is
http://jdownloader.org/knowledge/wik...nt/get-started
Reply With Quote
  #18  
Old 02.09.2015, 21:35
Christophe0110
Guest
 
Posts: n/a
Default

Thanks but I prefert to stay with the API (as far as I can understand, this java help is for developping directly in the jDownloaded application)... The API will allow me to control my Downloader from another computer with my application...

I'll try to find a way to make this work and maybe get help from the chat or something
Reply With Quote
  #19  
Old 03.09.2015, 09:17
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

The first long array contains all links uuids you want to delete
The 2nd long array contains all package uuids you want to delete
__________________
JD-Dev & Server-Admin
Reply With Quote
  #20  
Old 03.09.2015, 10:04
Christophe0110
Guest
 
Posts: n/a
Default

Hello Jiaz,

Thanks for your reply but how can I know the links uuids ?
I guess I need to use the queryLinks function and use the packageUUIDs param ?
Is it normal that it's named "packageUUIDs" and not "linkUUIDS" ?

Thanks.
Reply With Quote
  #21  
Old 03.09.2015, 10:10
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

Naming is not important, the parameters are parsed according their index (so correct order is important)
yes, you can either delete a complete package via packageUUIDs or just some links via their linkUUIDs. you need to use queryLinks to get all links and linkUUIDs from a package
__________________
JD-Dev & Server-Admin
Reply With Quote
  #22  
Old 03.09.2015, 10:47
Christophe0110
Guest
 
Posts: n/a
Default

I guess I'm doing something wrong because everytime I try to get this function to work, i've got :
{
"type" : "API_COMMAND_NOT_FOUND",
"data" : null,
"src" : "DEVICE"
}

But I will found it, I hope

Do I need to use both parameters (both long array) even if I only want to delete links ?

Last edited by Christophe0110; 03.09.2015 at 10:52.
Reply With Quote
  #23  
Old 03.09.2015, 10:53
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

yes, both, else the implemented api method will not be found
__________________
JD-Dev & Server-Admin
Reply With Quote
  #24  
Old 03.09.2015, 11:18
Christophe0110
Guest
 
Posts: n/a
Default

Ok, now it's better :
{
"type" : "BAD_PARAMETERS",
"data" : "1441268045961",
"src" : "DEVICE"
}

I don't give up !
Reply With Quote
  #25  
Old 03.09.2015, 11:44
Christophe0110
Guest
 
Posts: n/a
Default

Yes ! It's working !
Thanks for your help Jiaz.
As soon as I have finished my VB .NET wrapper, I'll give the link here.
Reply With Quote
  #26  
Old 03.09.2015, 11:45
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

Thanks for feedback! What was causing the issue?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #27  
Old 03.09.2015, 11:57
Christophe0110
Guest
 
Posts: n/a
Default

I gave the parameters this way: ["1441268045961", ""] instead of ["[1441268045961]", "[]"]

So I was not using array correctly...
Reply With Quote
  #28  
Old 03.09.2015, 12:44
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

I suggest to use a json mapper for easier usage
Thanks for the feedback!
__________________
JD-Dev & Server-Admin
Reply With Quote
  #29  
Old 03.09.2015, 13:51
Christophe0110
Guest
 
Posts: n/a
Default

It's what I did, yes
Thanks
Reply With Quote
  #30  
Old 10.09.2015, 12:35
Christophe0110
Guest
 
Posts: n/a
Default

Hello again !

Is there any place where it's possible to know what are the other function parameter ?
For example :
The "moveLinks" function for linkgrabberv2 has 3 parameters in the API documentation :
Parameter: 1 - long[]1
Parameter: 2 - long1
Parameter: 3 - long2
Is there another help somewhere to know what should I put in those parameters?

Thanks.
Reply With Quote
  #31  
Old 10.09.2015, 12:45
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

1-long[] link UUIDs
2-long -> after link UUID (move after given linkg), -1 for beginning
3-long-> package UUID (move into given package)

Only valid place is currently the implementation or the client java code (interfaces)
You can also ask via support@jdownloader.org
__________________
JD-Dev & Server-Admin
Reply With Quote
  #32  
Old 10.09.2015, 13:46
Christophe0110
Guest
 
Posts: n/a
Default

Thanks for your help !
Reply With Quote
  #33  
Old 10.09.2015, 14:11
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

You are welcome
__________________
JD-Dev & Server-Admin
Reply With Quote
  #34  
Old 28.06.2016, 15:57
wcapes21
Guest
 
Posts: n/a
Default

hi Christophe0110

Did you ever complete your project?

Looking for VB.NET or C# code to use in a small project I am doing for myself.

Thanks
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 01:32.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.