Kodi Community Forum
REST api JSON: how to get a list of properties of a method? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: REST api JSON: how to get a list of properties of a method? (/showthread.php?tid=366579)



REST api JSON: how to get a list of properties of a method? - Mannshoch - 2022-01-18

I'm searching the possible properties of "XBMC.GetInfoBooleans" and "Application.GetProperties" and other method. How do I get them?


RE: REST api JSON: how to get a list of properties of a method? - Mannshoch - 2022-01-18

For the Record.
json:
{ "jsonrpc": "2.0", "method": "JSONRPC.Introspect", "params": { "filter": { "id": "XBMC.GetInfoBooleans", "type": "method" } }, "id": 1 }

Do not show any properties


RE: REST api JSON: how to get a list of properties of a method? - rmrector - 2022-01-19

JSONRPC.Introspect is the way to do it for most JSON-RPC methods.

XBMC.GetInfoBooleans and XBMC.GetInfoLabels are different and tie into deeper system data, there isn't really a complete list of options. See the wiki page list of boolean conditions to get you started on GetInfoBooleans.


RE: REST api JSON: how to get a list of properties of a method? - Mannshoch - 2022-01-25

Isn't there a possibility to get a List from Kodi itself? In my opinion Kodi should know what properties exist. How does other API user do get these Information?
I wish use the information with Node-red.


RE: REST api JSON: how to get a list of properties of a method? - DarrenHill - 2022-01-25

The wiki (JSON-RPC_API (wiki)) and docs.kodi.tv are two good places to start.