JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 16.05.2021, 18:43
ELM0 ELM0 is offline
Junior Loader
 
Join Date: Mar 2019
Posts: 12
Question Example myJD API curl?

Hello.

How do you send a download link (**External links are only visible to Support Staff****External links are only visible to Support Staff** folder) to my.jdownloader using the API and curl? Can someone give an example please?


I'm new to programming and trying to learn it.

Last edited by ELM0; 16.05.2021 at 18:45.
Reply With Quote
  #2  
Old 17.05.2021, 12:23
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 70,805
Default

@ELM0: I'm sorry but I don't think MyJDownloader API and curl will be good starting point for someone that is *new to programming* as MyJDownloader Protocol involves SHA256, Signatures, AES Encryption and JSON.

Do you need MyJDownloader to send remotely or is JDownloader running on same computer?
Do you want to automate it or just send the url to JDownloader?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 17.05.2021, 20:30
ELM0 ELM0 is offline
Junior Loader
 
Join Date: Mar 2019
Posts: 12
Default

@Jiaz: I have JD2 installed on my server in a datacenter and I use my.jdownloader.com to control it.

I wrote a script that fetches an RSS feed of new download links, and I want it to automatically send a download link to jdownloader. Nothing special, only adding the download link and starting the download. Automatically.

Or maybe there is a different solution for it?
Scenario: I have a fix download link (doesn't change), and I want it to automatically, weekly or monthly, (depending on download link), to be a added to JD2 and it should fetch the links and start the download. All done on a headless machine (Linux server).

Example:
Every Monday (weekly) the link **External links are only visible to Support Staff****External links are only visible to Support Staff** should be added to JD2. It should fetch the files and start the download.

Last edited by ELM0; 17.05.2021 at 21:43.
Reply With Quote
  #4  
Old 18.05.2021, 01:53
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,316
Default

directory/folder watch might be the easiest solution if you have external access.
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #5  
Old 18.05.2021, 11:10
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 70,805
Default

@ELM0: If the link is the same, I would use the Eventscripter and a script that periodically adds the link to JDownloader. Then JDownloader process the link and you just have to remove already downloaded files, maybe can done automatically via script as well.

Or you can use existing 3rd party clients for many lanuages you can find on github
__________________
JD-Dev & Server-Admin
Reply With Quote
  #6  
Old 18.05.2021, 17:03
ELM0 ELM0 is offline
Junior Loader
 
Join Date: Mar 2019
Posts: 12
Default

Thank you for the help! I think folderwatch is actually the easiest way to do it. And it's works.

Eventscripter:
I'm just learning Python and can't write the Eventscript myself, yet. But if anyone can write the code, I think it's a valuable contribution to the Eventscripts pinned thread.

Even though the thread moved totally off topic, I still think some examples in the documentation of the API would be helpful.

Thread is SOLVED. :D

Last edited by ELM0; 18.05.2021 at 17:06.
Reply With Quote
  #7  
Old 18.05.2021, 18:53
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 70,805
Default

Eventscripter Syntax is Javascript, see https://board.jdownloader.org/showthread.php?t=70525
Just ask in that thread for help. I'm sure mgpai will be able to help/assist you
__________________
JD-Dev & Server-Admin
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:00.
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 - 2021, Jelsoft Enterprises Ltd.