JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 22.02.2018, 13:47
recytec
Guest
 
Posts: n/a
Unhappy API 400 Error

Hey habe die PHP API Klasse von tofika (**External links are only visible to Support Staff****External links are only visible to Support Staff**)


Links hinzufügen kann ich auch oder die Links abfragen.
Ich habe nur das Problem ich kann nicht die Links entfernen oder umbennen

Links entfernen Code in der Klasse

public function removeLinks($linkIds = []){
if( !is_array( $this -> devices)) {
$this -> enumerateDevices();
}


$params = '"linkIds ":"1519297765864","packageIds":"1519297765730"';
$res = $this -> callAction( "/linkgrabberv2/removeLinks", $params);
return $res;
}

Ich bekomme dann einfach nur ein boolean false und nen 400 Error Bad request code - ich weiß echt nicht wie ich weiter machen soll, hoffe mir kann jemand nen Template für remove Links und Rename Links schicken oder vllt hat jemand eine bessere klasse.

Habe auch Teamviewer einfach mich auf Skype dann anschreiben -> recytec2

Danke euch
Reply With Quote
  #2  
Old 22.02.2018, 13:55
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
Default

API Docu:
https://my.jdownloader.org/developers/

/linkgrabberv2/removeLinks
1 - linkIds (long[])
2 - packageIds (long[])

somit ist params
[ [linkid1,linkid2,linki3],[pkgid1,pkgid2]]

Am besten im Chat anschreiben, IRC, freenode, #jdteam

Parameter in der API werden via Reihenfolge/Index und nicht via Namen angesprochen/übergeben
__________________
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 10:01.
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.