![]() |
Working JSON RPC API Examples - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +---- Forum: JSON-RPC (https://forum.kodi.tv/forumdisplay.php?fid=174) +---- Thread: Working JSON RPC API Examples (/showthread.php?tid=157996) |
RE: Working JSON RPC API Examples - Stephan28 - 2024-05-27 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:
RE: Working JSON RPC API Examples - 37KDeep - 2025-01-28 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}}} |