synolopy icon indicating copy to clipboard operation
synolopy copied to clipboard

what is the format of the [params] ?

Open omegawea opened this issue 7 years ago • 0 comments

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]

omegawea avatar Aug 25 '18 11:08 omegawea