2010-11-25, 12:45
Hi Folks,
just wanted to let you know that I've created a (very alpha and basic) Ruby client for the JSON RPC API.
It does not explicitly define all the classes and methods in the source code, but rather builds itself on the fly by calling JSONRPC.Introspect and then dynamically defining all namespaces and methods, so with very little code, the API is (kind of) covered completely.
You can find the source on Github: https://github.com/colszowka/xbmc-client
It is available as a Rubygem "xbmc-client", see the gem website at http://rubygems.org/gems/xbmc-client
I've only tried it with the AudioLibrary and AudioPlayer API so far, but I don't see a reason why it shouldn't work for the other API requests as long as there are no quirks in certain API calls that I'm not aware of.
I've also filed a related feature request for the JSON RPC API on Trac: http://trac.xbmc.org/ticket/10763
just wanted to let you know that I've created a (very alpha and basic) Ruby client for the JSON RPC API.
It does not explicitly define all the classes and methods in the source code, but rather builds itself on the fly by calling JSONRPC.Introspect and then dynamically defining all namespaces and methods, so with very little code, the API is (kind of) covered completely.
You can find the source on Github: https://github.com/colszowka/xbmc-client
It is available as a Rubygem "xbmc-client", see the gem website at http://rubygems.org/gems/xbmc-client
I've only tried it with the AudioLibrary and AudioPlayer API so far, but I don't see a reason why it shouldn't work for the other API requests as long as there are no quirks in certain API calls that I'm not aware of.
I've also filed a related feature request for the JSON RPC API on Trac: http://trac.xbmc.org/ticket/10763