[JSON API] Get webui information with jsonrpc

General support for problems installing or using Deluge
Post Reply
AlxAlxV
Member
Member
Posts: 19
Joined: Tue Nov 12, 2013 12:36 pm

[JSON API] Get webui information with jsonrpc

Post by AlxAlxV »

Hi,

I'm trying to use the json api, but I'm stuck with an error 500...
What am I missing ?

Here is my request :
(It's a preview made by POSTMAN, I m trying with POST not GET.)

Code: Select all

http://192.168.1.106:8112/json?method=web.update_ui&label=tv&params={"name","total_size","state","hash","save_path"}
Thanks for your precious help

My final objective is to POST and ise the result in a bash file.
raspdealer
Leecher
Leecher
Posts: 56
Joined: Sun Oct 04, 2015 6:11 pm

Re: HELP Get webui information with jsonrpc

Post by raspdealer »

Hi guys,

I'm trying to get webui infos too.
I'm stuck with the auth now. But how ? :( (please see attachments)

THANKS
Attachments
Response
Response
Capture3.PNG (33.42 KiB) Viewed 3866 times
Body
Body
Capture2.PNG (31.26 KiB) Viewed 3866 times
Header
Header
Capture.PNG (21.77 KiB) Viewed 3866 times
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: HELP Get webui information with jsonrpc

Post by Cas »

raspdealer
Leecher
Leecher
Posts: 56
Joined: Sun Oct 04, 2015 6:11 pm

Re: HELP Get webui information with jsonrpc

Post by raspdealer »

I've tried but I get this :
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Date: Thu, 08 Oct 2015 19:41:09 GMT
Content-Encoding: gzip
Content-Type: application/x-json
Server: TwistedWeb/12.0.0
Set-Cookie: _session_id=609b2956335da016e43d5131df083e872049; Expires=Thu, 08 Oct 2015 20:41:09 GMT; Path=/json

{"id": 1, "result": true, "error": null}
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: HELP Get webui information with jsonrpc

Post by Cas »

What's the issue? That is the session_id which you will need to supply for further requests...
raspdealer
Leecher
Leecher
Posts: 56
Joined: Sun Oct 04, 2015 6:11 pm

Re: HELP Get webui information with jsonrpc

Post by raspdealer »

{"id": 1, "result": true, "error": null}

No cookies file...
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: HELP Get webui information with jsonrpc

Post by Cas »

raspdealer
Leecher
Leecher
Posts: 56
Joined: Sun Oct 04, 2015 6:11 pm

Re: HELP Get webui information with jsonrpc

Post by raspdealer »

How dumb... Didnt see the header.
Now looks ok, it was a sudo issue...

I can move forward.

Thanks Cas
Post Reply