PHP Wrapper for XBMC JSON-RPC and HTTP-API - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116) +--- Thread: PHP Wrapper for XBMC JSON-RPC and HTTP-API (/showthread.php?tid=88388) |
RE: PHP Wrapper for XBMC JSON-RPC and HTTP-API - papagot - 2015-05-25 Hello, Sorry for my bad language. I'm reed readmi $xbmcJson->NAMESPACE->COMMAND(array(PARAM1 => VALUE1, PARAM2 => VALUE2, etc..)); I'm write PHP Code: if (!empty($catch)) { PHP Code: $TopSongs = $xbmcJson->AudioLibrary->GetSongs( PHP Code: $propertis = array("properties" => "artist", "duration", "album", "track"); RE: PHP Wrapper for XBMC JSON-RPC and HTTP-API - bks84 - 2015-07-26 Hi all, Could anyone point me into the right direction to use the correct syntax to get the following data Code: { I am fairly new to this and I don't now how to use the command according to the instruction set below by Kai JSON-RPC API (http://wiki.xbmc.org/index.php?title=JSON_RPC) Commands are sent using the following syntax: Code: $xbmcJson->NAMESPACE->COMMAND(array(PARAM1 => VALUE1, PARAM2 => VALUE2, etc..)); I know the bit where I need to use the namespace Player and the command GetItem, however I do not know how to incorporate the parameters correctly. |