JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 16.05.2021, 19:43
ELM0 ELM0 is offline
Junior Loader
 
Join Date: Mar 2019
Posts: 14
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 19:45.
Reply With Quote
  #2  
Old 17.05.2021, 13:23
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
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, 21:30
ELM0 ELM0 is offline
Junior Loader
 
Join Date: Mar 2019
Posts: 14
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 22:43.
Reply With Quote
  #4  
Old 18.05.2021, 02:53
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,659
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, 12:10
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
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, 18:03
ELM0 ELM0 is offline
Junior Loader
 
Join Date: Mar 2019
Posts: 14
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 18:06.
Reply With Quote
  #7  
Old 18.05.2021, 19:53
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
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
  #8  
Old 21.10.2023, 12:55
Magi Magi is offline
Super Loader
 
Join Date: Aug 2018
Posts: 29
Default

ELM0, Can you share the script?
Thanks in advance.
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 06:57.
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.