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 - roscoe - 2013-07-02 hi I put up some python code which will: - read in an external playlist - put it to music queue - play it it can be extended easily http://forum.xbmc.org/showthread.php?tid=167987&pid=1454037#pid1454037 it do post the link in this thread because I think it can better be found under the above topic Working JSON RPC API Examples RE: Working JSON RPC API Examples - armyofme - 2013-09-15 Thanks Pghpunkid for your examples....the examples on the wiki are not as straightforward for the less technically minded! Only problem is...when I tried them thorugh the web browser I get this message returned regardless to the example I use: "JSONRPC active and working" Any idea why it's returning this instead of what's been requesting? I've selected all the options in XBMC network-settings. RE: Working JSON RPC API Examples - Montellese - 2013-09-15 You're version of XBMC is probably too old and doesn't support JSON-RPC requests using HTTP GET (only POST). Otherwise it should return the whole JSON schema API description if you just do a HTTP GET request to http://<ip>:<port>/jsonrpc. RE: Working JSON RPC API Examples - armyofme - 2013-09-15 (2013-09-15, 15:04)Montellese Wrote: You're version of XBMC is probably too old and doesn't support JSON-RPC requests using HTTP GET (only POST). Otherwise it should return the whole JSON schema API description if you just do a HTTP GET request to http://<ip>:<port>/jsonrpc. Thank you...you're absolutely correct. I've tried it on my Raspberry Pi which has the Frodo on and it works. RE: Working JSON RPC API Examples - yallah - 2013-10-31 hi, try to use with gotham alpha8 : http://192.168.2.176/jsonrpc?request={"jsonrpc":"2.0","method":"Profiles.LoadProfile","params":{"profile":"Master user","password":{"value":"12345"}},"id":1} and return me: error: { code: -32602, message: "Invalid params." }, id: 1, jsonrpc: "2.0" did I mistake something in syntax thanks by advance RE: Working JSON RPC API Examples - Montellese - 2013-10-31 There are several things that could have gone wrong:
PS: This is not the right thread to ask about problems with requests. RE: Working JSON RPC API Examples - yallah - 2013-10-31 (2013-10-31, 16:18)Montellese Wrote: There are several things that could have gone wrong: 1/ Yes : I user right profile name because when I use http://192.168.2.176/jsonrpc?request={"jsonrpc":"2.0","method":"Profiles.LoadProfile","params":{"profile":"Master user"},"id":1} , it's working (when I remove password in profile from xbmc client). 2/ I tried already with http://192.168.2.176/jsonrpc?request={"jsonrpc":"2.0","method":"Profiles.LoadProfile","params":{"profile":"Master user","password":{"value":"12345","encryption":"none"}},"id":1} or http://192.168.2.176/jsonrpc?request={"jsonrpc":"2.0","method":"Profiles.LoadProfile","params":{"profile":"Master user","password":{"value":"12345","encryption":"md5"}},"id":1} , it's same issue PS: Sorry :/ RE: Working JSON RPC API Examples - Montellese - 2013-10-31 Did you actually MD5 encode your password or did you just add "encryption": "md5"? RE: Working JSON RPC API Examples - yallah - 2013-11-01 Oh need encode with tool like this : http://7thspace.com/webmaster_tools/online_md5_encoder.html. but why If I put http://192.168.2.176/jsonrpc?request={"jsonrpc":"2.0","method":"Profiles.LoadProfile","params":{"profile":"Master user","password":{"value":"12345","encryption":"none"}},"id":1} it doesn't work also ? RE: Working JSON RPC API Examples - Montellese - 2013-11-01 It should but TBH I didn't write the code and I've never used XBMC profiles in my life so I'd have to take some time to look into it. Did it work with the encoded password? RE: Working JSON RPC API Examples - yallah - 2013-11-01 {"jsonrpc":"2.0","method":"Profiles.LoadProfile","params":{"profile":"Master%20user","password":{"value":"827ccb0eea8a706c4c34a16891f84e7b","encryption":"md5"}},"id":1} same issue :// RE: Working JSON RPC API Examples - Martijn - 2013-11-01 Please start a new thread..... This has nothing to do with examples anymore (can a mod split this into a new one? ) RE: Working JSON RPC API Examples - yallah - 2013-11-01 sorry :/ thread for Profiles.Loadprofile: http://forum.xbmc.org/showthread.php?tid=176988 RE: Working JSON RPC API Examples - xbmconatv2 - 2013-12-03 Can someone post an example for accessing entries in the Bookmarks table of the Database? I have a script that uses the old/deprecated executehttpapi method that obviously does not work anymore. I've been trying to find a way to read entries from Bookmarks using jsonrpc but I have not found anything yet. Here's a link to something that I did with the Bookmarks. Thanks RE: Working JSON RPC API Examples - tonilundin - 2014-06-22 Example for turning off system? |