That sounds interesting. How exactly would I need to format those POST
requests? (I'm a total noob at those things).

You'd send the command as a stringified JSON object in the body of the requeest:

{"id":0,"params":["00:04:...",["serverstatus"]],"method":"slim.request"}

["serverstatus"] would be your command, where you put every argument as an array item. Eg. ["titles", 0, 100, "tags:a"] would give you one hundred titles, starting at the first (0), with ID, title, and artist name (a).

{"id":0,"params":["00:04:...",["playlist", "play", "http://www.radio.com/some/stream"]],"method":"slim.request"}

Would play the URL. And so on.

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

Reply via email to