Kodi Community Forum

Full Version: [JSON RPC] globals?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I am building a web based application for my touchscreens to control my XBMC. I am using PHP to send the JSON requests. i've got the basics working.

When i am sending the request : {"jsonrpc": "2.0", "method": "AudioLibrary.GetAlbumDetails", "params" : { "albumid" : 45 }, "id" : 1}

I recieve the album label. The next step is to recieve te album details (like Artist Id, etc). I read al lot of documentation, and i think is has someting to do with the globals. But i really don't know how to retrieve te globals by using JSON.

Hopefully someone can help me. thanks in advance.
Nevermind,

adding the global vars to the parameters works Smile

{"jsonrpc": "2.0", "method": "AudioLibrary.GetAlbumDetails", "params" : { "albumid" : 30, "properties" : ["artist"]}, "id" : 1}