reinholdk wrote: 
> Passing a JSON string on the command line under Windows would require to
> escape the double quotes, like this:
> > 
Code:
--------------------
  >   > curl "http://localhost:9000/jsonrpc.js"; --data-raw 
"{\"id\":0,\"method\":\"slim.request\",\"params\":[\"\",[\"musicartistinfo\",\"localfiles\",\"folder:/C:/Google
 Drive/Music/Bob Pearce/Someone To Run To/\"]]}"
--------------------
> > 

Thanks, yes that worked, at least now we know the windows syntax.

The response was as per that from the console window:

C:\WINDOWS\system32>curl "http://192.168.1.24:9000/jsonrpc.js";
--data-raw
"{"id":0,"method":"slim.request","params":["",["musicartistinfo","localfiles","folder:/C:/Google
Drive/Music/Bob Pearce/Someone To Run To/"]]}"
{"params":["",["musicartistinfo","localfiles","folder:/C:/Google
Drive/Music/Bob Pearce/Someone To Run
To/"]],"method":"slim.request","id":0,"result":{"window":{"textArea":"Empty"},"count":1,"offset":0}}
C:\WINDOWS\system32>



location 1: lms 8.0 on win 10 brix server, x2 sb radios, x1 touch, x1
controller : location 2: lms 8.0 on win 10 brix server, x2 sb radios, x1
duet receiver, x1 controller : alexa mediaserver smart skill, material
android, squeezelitex control
------------------------------------------------------------------------
staresy's Profile: http://forums.slimdevices.com/member.php?userid=807
View this thread: http://forums.slimdevices.com/showthread.php?t=109624

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to