Skip to content

what is the format of the [params] ? #12

@omegawea

Description

@omegawea

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions