JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 30.09.2020, 17:34
Senouy Senouy is offline
Modem User
 
Join Date: Sep 2020
Posts: 3
Exclamation Call to /downloadsV2/getDownloadUrls

Hello,
I wonder what a response from /linkgrabberv2/getDownloadUrls will look like?

I am sending a request to with params:
1 - linkIds (long[])
2 - packageIds (long[])
3 - urlDisplayType (UrlDisplayTypeStorable[])

the third param I cannot figure out what is it, can any one give an example of it ? or help me to correct my request?
Code:
"params":[[1601461176301],[1601461191402], []],"rid":1601474823,"apiVer":1}

I am getting this as response::blink:
Code:
string(43) "{
  "data" : { },
  "rid" : 1601474865
}"

Thank you!
Reply With Quote
  #2  
Old 30.09.2020, 17:46
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 54,942
Default

Hi,

[] = empty array

You need e.g.:
Code:
CUSTOM,
    REFERRER,
    ORIGIN,
    CONTAINER,
    CONTENT;
E.g.:
Code:
["CONTENT"]
-psp-
EDIT

Jiaz will fix the api doc to explain the param.
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
That's true James
Quote:
Originally Posted by James
Die Leute verstehen einfach nicht dass nur weil man mit einer Waffe auch auf Menschen schießen kann dass ein Schützenver​ein kein Ort für Amoklaufide​en ist

Last edited by pspzockerscene; 30.09.2020 at 18:04.
Reply With Quote
  #3  
Old 30.09.2020, 18:23
Senouy Senouy is offline
Modem User
 
Join Date: Sep 2020
Posts: 3
Default

Hello,
I know I should put there one of the values you just mentioned,
I send a request with:
Code:
{"url":"/downloadsV2/getDownloadUrls","params":[[1601461176382],[1601461191425],["CONTENT"]],"rid":1601479146,"apiVer":1}
and I always get a 400 error code as a response code wich means bad parameters..
I actually tried all the values you mentioned above, yet I get a 400 error.
Surprisingly when I send it empty as
Code:
{"url":"/downloadsV2/getDownloadUrls","params":[[1601461176382],[1601461191425],[]],"rid":1601479146,"apiVer":1}
I get a 200 success code!
Any ideas ? may be the server side doesn't recognise this parameter values ?

Last edited by Senouy; 30.09.2020 at 18:51.
Reply With Quote
  #4  
Old 30.09.2020, 19:05
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 54,942
Default

Most likely wrong encoding of the parameter.
Which client are you using to send your requests?

-psp-
EDIT

If you continue to have issues, please contact us again via support@jdownloader.org
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
That's true James
Quote:
Originally Posted by James
Die Leute verstehen einfach nicht dass nur weil man mit einer Waffe auch auf Menschen schießen kann dass ein Schützenver​ein kein Ort für Amoklaufide​en ist

Last edited by pspzockerscene; 30.09.2020 at 19:08.
Reply With Quote
  #5  
Old 30.09.2020, 19:34
Senouy Senouy is offline
Modem User
 
Join Date: Sep 2020
Posts: 3
Default

SOLVED:
I fixed the issue by changing the the Strings to Numbers.
Instead of using
Code:
CUSTOM,
REFERRER,
ORIGIN,
CONTAINER,
CONTENT
use numbers
Code:
[0, 1, 2, 3, 4]
Happy Coding!
Reply With Quote
  #6  
Old 30.09.2020, 19:40
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 54,942
Default

Thanks for your feedback

-psp-
EDIT

Do you use this as a workaround for a buggy client?
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
That's true James
Quote:
Originally Posted by James
Die Leute verstehen einfach nicht dass nur weil man mit einer Waffe auch auf Menschen schießen kann dass ein Schützenver​ein kein Ort für Amoklaufide​en ist

Last edited by pspzockerscene; 01.10.2020 at 16:15.
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 21:36.
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 - 2020, Jelsoft Enterprises Ltd.