#1
|
|||
|
|||
![]()
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! |
#2
|
||||
|
||||
![]()
Hi,
[] = empty array You need e.g.: Code:
CUSTOM, REFERRER, ORIGIN, CONTAINER, CONTENT; Code:
["CONTENT"] EDIT Jiaz will fix the api doc to explain the param.
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download Last edited by pspzockerscene; 30.09.2020 at 18:04. |
#3
|
|||
|
|||
![]()
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} 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} Any ideas ? may be the server side doesn't recognise this parameter values ? Last edited by Senouy; 30.09.2020 at 18:51. |
#4
|
||||
|
||||
![]()
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 Last edited by pspzockerscene; 30.09.2020 at 19:08. |
#5
|
|||
|
|||
![]()
SOLVED:
I fixed the issue by changing the the Strings to Numbers. Instead of using Code:
CUSTOM, REFERRER, ORIGIN, CONTAINER, CONTENT Code:
[0, 1, 2, 3, 4] |
#6
|
||||
|
||||
![]()
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 Last edited by pspzockerscene; 01.10.2020 at 16:15. |
![]() |
Thread Tools | |
Display Modes | |
|
|