• 1
  • 12
  • 13
  • 14
  • 15
  • 16(current)
Working JSON RPC API Examples
Hi,
I was looking for the same command. Now, I have found the following solution that does it for me.
Use HTTP-POST instead of GET. The request should be paste in the body
With curl it looks like that:

Code:

curl --data-binary '{"jsonrpc":"2.0","id":1,"method":"Player.Open","params":{"item":{"recursive":true, "directory":"special://profile/playlists/music/Trance.xsp"}}}' -H 'content-type: application/json;' http://kodi:[email protected]:8081/jsonrpc
{"id":1,"jsonrpc":"2.0","result":"OK"}
Reply
Thank you! With your help, this works perfectly for me...

{"jsonrpc": "2.0", "id": 0, "shuffle":true, "method": "Playlist.Clear", "params": {"playlistid": 0}}, {"jsonrpc":"2.0","id":0,"method":"Playlist.Add","params":{"playlistid":0,"item":{"recursive":true, "directory":"special://profile/playlists/music/Trance.xsp"}}}, {"jsonrpc":"2.0","id":0,"method":"Player.Open","params":{"item":{"playlistid":0,"position":0}}}
Reply
  • 1
  • 12
  • 13
  • 14
  • 15
  • 16(current)

Logout Mark Read Team Forum Stats Members Help
Working JSON RPC API Examples0