2016-11-30, 05:32
(2016-11-30, 04:32)jingai Wrote: I assume you're on Windows, so it'd be the quoting. I think this should work:
Code:curl --data-binary "{""jsonrpc"":""2.0"", ""method"":""VideoLibrary.GetMovies"", ""id"":1}" -H "content-type: application/json;" -u username:password http://host:port/jsonrpc
looks like the same code
if not it gives me the same error:
curl: (6) Could not resolve host: method
curl: (3) [globbing] unmatched close brace/bracket in column 5
curl: (6) Could not resolve host: application
Quote:also tried -g
curl -g --data-binary '{"jsonrpc":"2.0", "method":"VideoLibrary.GetMovies", "id":1}' -H 'content-type: application/json;' -u user:pass http://url:8070/jsonrpc
curl: (6) Could not resolve host: method
curl: (6) Could not resolve host: id
curl: (6) Could not resolve host: application
Quote:then tried without space between content type and application:
curl -g --data-binary '{"jsonrpc":"2.0", "method":"VideoLibrary.GetMovies", "id":1}' -H 'content-type:application/json;' -u user:pass http://url:8070/jsonrpc
curl: (6) Could not resolve host: method
curl: (6) Could not resolve host: id
plus now for some reason alexa doesn't even see the commands I use for kodi. So if I say kodi or the living room (whatever I set it as) she says she can't find a app for that