synolopy
synolopy copied to clipboard
what is the format of the [params] ?
i tried the following code: method = 'create' params = { 'params':{ "url": "http://torrent.com/abc.torrent", "destination": "video/TEMPERORY", }} nas.downloadstation.task.request(method, **params)
File "...\Anaconda3\lib\site-packages\synolopy\devices.py", line 20, in validate raise SynologyException(API_ERROR[code])
SynologyException: Invalid parameter
you mention that, in general, the command is: nas.application.service.request(method, [params])
I wonder if you can tell me how to construct the input parameter [params]