2010-11-04, 10:29
ppic Wrote:don't work, i still get a prompt.
Code:xbmc@media:~$ curl -u 'xbmc:xbmc -i -X POST -d '{"jsonrpc": "2.0", "method": "VideoLibrary.GetTVShows", "params": { "start": 0, "fields": ["genre", "director", "plot", "title", "originaltitle", "runtime", "year", "rating"] }, "id": 1}' http://192.168.0.8/jsonrpc >> test.txt
>
Some characters needs to be escaped. Should be something like
Code:
curl -u "xbmc:xbmc -i -X POST -d \'\{\"jsonrpc\": \"2.0\", \"method\": \"VideoLibrary.GetTVShows\", \"params\": \{ \"start\": 0, \"fields\": \[\"genre\", \"director\", \"plot\", \"title\", \"originaltitle\", \"runtime\", \"year\", \"rating\"\] \}, \"id\": 1\}" http://127.0.0.1:8080/jsonrpc