Skip to content

Commit be67452

Browse files
replexXxmmarquezs
authored andcommitted
Update myjdapi.py
Added query_packages function to LinkGrabber Class
1 parent fb7088a commit be67452

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

myjdapi/myjdapi.py

+20-6
Original file line numberDiff line numberDiff line change
@@ -465,12 +465,26 @@ def rename_package(self):
465465
"""
466466
pass
467467

468-
def query_packages(self):
469-
"""
470-
No idea what parameters i have to pass and/or i don't know what it does.
471-
If i find out i will implement it :P
472-
"""
473-
pass
468+
def query_packages(self,
469+
params=[{
470+
"availableOfflineCount":True,
471+
"availableOnlineCount":True,
472+
"availableTempUnknownCount":True,
473+
"availableUnknownCount":True,
474+
"bytesTotal":True,
475+
"childCount":True,
476+
"comment":True,
477+
"enabled":True,
478+
"hosts":True,
479+
"maxResults":-1,
480+
"packageUUIDs":[],
481+
"priority":True,
482+
"saveTo":True,
483+
"startAt":0,
484+
"status":True
485+
}]):
486+
resp = self.device.action(self.url + "/queryPackages", params)
487+
return resp
474488

475489
def move_packages(self):
476490
"""

0 commit comments

Comments
 (0)