Code: Select all
"{"method": "label.add", "params": ["label"], "id": "5"}"
this dosent work
label plugin is enabled. there isnt much documentation on the api to be honest
Code: Select all
"{"method": "label.add", "params": ["label"], "id": "5"}"
Code: Select all
deluge.client.label.add
Code: Select all
label.add
Code: Select all
"{"method": "deluge.client.label.add", "params": ["label"], "id": "5"}"
label.add
I don't use the json-api much but it does work. It is much more helpful if you can provide the error you are seeing. "method": "system.listMethods"
Code: Select all
curl -b cookies.txt --compressed -i -H "Content-Type: application/json" -H "Accept: application/json" -X POST -d '{"method": "label.add", "params": ["new"], "id": 1}' http://localhost:8112/json
Code: Select all
curl -b cookies.txt --compressed -i -H "Content-Type: application/json" -H "Accept: application/json" -X POST -d '{"method": "system.listMethods", "params": [], "id": 1}' http://localhost:8112/json
Code: Select all
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Date: Mon, 16 Jan 2017 00:52:07 GMT
Content-Encoding: gzip
Content-Type: application/x-json
Server: TwistedWeb/16.0.0
{"id": 1, "result": null, "error": {"message": "Unknown method", "code": 2}}
Users browsing this forum: No registered users and 5 guests