XBMC Community Forum
JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Development (/forumdisplay.php?fid=93)
+---- Forum: JSON-RPC (/forumdisplay.php?fid=174)
+---- Thread: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC (/showthread.php?tid=68263)



Ticket 11165 created - turbolag - 2011-02-05 01:58

I created the ticket to track the permissions error when calling Files.Download.

I see that in the Roadmap, HTTP API is to be completely removed from XBMC in three weeks time. Since much of the functionality is missing from JSONRPC, will the HTTP API be kept alive?


- topfs2 - 2011-02-05 02:29

turbolag Wrote:I created the ticket to track the permissions error when calling Files.Download.

I see that in the Roadmap, HTTP API is to be completely removed from XBMC in three weeks time. Since much of the functionality is missing from JSONRPC, will the HTTP API be kept alive?

I'd opt to say that we will keep HTTP API until jsonrpc is really close functionality wise, might even be an overlap in time where both exist. HTTP API will however not get new features during this time.

The idea was to remove it in eden but I fear it is unlikely to happen due to the time constraints we all have had to work on the API. Functionality will be really close to HTTP API in eden though, it will be very stable and there are very few stuff missing nowadays. The only missing thing is the execbuiltin which violates the entire philosophy about jsonrpc and it will be really hard to cover all it does before deprecating. Which is why we want as many tickets as possible about missing features and how the methods to access that feature should look (the less we need to think the more likely it is implemented).


- Tolriq - 2011-02-05 11:28

About missing feature since i got no answer i suppose it's missing, but we need a way to get covers / fanart for the All seasons in TV Shows.

Or a way to get translated strings in user language from json.

Even if i think that the CRC calculation should really not be language based Smile


- topfs2 - 2011-02-05 17:39

Tolriq Wrote:About missing feature since i got no answer i suppose it's missing, but we need a way to get covers / fanart for the All seasons in TV Shows.

Or a way to get translated strings in user language from json.

Even if i think that the CRC calculation should really not be language based Smile

hmm, thought fanart was implemented, if not it really should be. please create a feature request ticket for it Smile Explain exactly what params and fields etc should be.


- wuench - 2011-02-05 19:18

I understand the VideoPlaylist.GetItems fields parameter uses the VideoInfoTag values. What would be the syntax for the field parameter to pull cast and stream info?


- topfs2 - 2011-02-05 19:38

wuench Wrote:I understand the VideoPlaylist.GetItems fields parameter uses the VideoInfoTag values. What would be the syntax for the field parameter to pull cast and stream info?

Think neither of those are wrapped atm. A ticket would be nice (one for each of the fields).


- Tolriq - 2011-02-05 19:43

Fanart for seasons just send back the standard tv show fanart.

What is missing is just the "all seasons" cover and fanart in the VideoLibrary.GetSeasons

like add a season -1 with the data

Will open a trac soon. Or perhaps there's a way to get the "* All seasons" in the user language from httpapi or json ?


- noem - 2011-02-08 12:05

I have a lame question
are System.GetInfoLabels,System.GetInfoBooleans working in 10.0 “Dharma” ?
Im trying :
Code:
{"id":7,"jsonrpc":"2.0","method":"System.GetInfoLabels","params":"[ \"System.BuildVersion\" ]"}

{"id":7,"jsonrpc":"2.0","method":"System.GetInfoLabels","params":"[ "System.BuildVersion" ]"}

{"id":7,"jsonrpc":"2.0","method":"System.GetInfoLabels","params":"[ 'System.BuildVersion' ]"}

and I get:
Code:
{
   "error" : {
      "code" : -32602,
      "message" : "Invalid params."
   },
   "id" : 7,
   "jsonrpc" : "2.0"
}

EDIT:
NVM got it working ....


- vidtech - 2011-02-08 13:53

Hi guys, new round these parts,

Been looking at the methods that have been mapped so far and was wondering if there was any way to navigate the menus of xbmc? - i.e. getting the same result as using up,down, left, right & enter on a keyboard.


- Montellese - 2011-02-08 20:16

noem Wrote:I have a lame question
are System.GetInfoLabels,System.GetInfoBooleans working in 10.0 “Dharma” ?
Im trying :
Code:
{"id":7,"jsonrpc":"2.0","method":"System.GetInfoLabels","params":"[ \"System.BuildVersion\" ]"}

{"id":7,"jsonrpc":"2.0","method":"System.GetInfoLabels","params":"[ "System.BuildVersion" ]"}

{"id":7,"jsonrpc":"2.0","method":"System.GetInfoLabels","params":"[ 'System.BuildVersion' ]"}

and I get:
Code:
{
   "error" : {
      "code" : -32602,
      "message" : "Invalid params."
   },
   "id" : 7,
   "jsonrpc" : "2.0"
}

EDIT:
NVM got it working ....

For anyone else who doesn't get this working, the proper way is:
Code:
{"id":7,"jsonrpc":"2.0","method":"System.GetInfoLabels","params":[ "System.BuildVersion" ]}
Notice that only strings are put between double quotes (not single quotes and no escape sequences) but objects (like an array of strings in this case) do not use any quotes around them.

vidtech Wrote:Hi guys, new round these parts,

Been looking at the methods that have been mapped so far and was wondering if there was any way to navigate the menus of xbmc? - i.e. getting the same result as using up,down, left, right & enter on a keyboard.

This is currently not possible. Please check Trac to see if there already is a feature request for this. If not feel free to add one. If you (or anyone else) got any other ideas please create a feature request for every feature you have in mind (not one for all of them) on Trac. Thanks