Skip to content

Latest commit

 

History

History
59 lines (44 loc) · 1.23 KB

README.md

File metadata and controls

59 lines (44 loc) · 1.23 KB

Xbmc Wrapper

Xbmc Wrapper is an ultra-minimalistic wrapper for the XBMC JSON-RPC API. Unlike other wrappers, functions are generated dynamically from the services JSONRPC.Introspect endpoint

Advantages

  • Functions are generated dynamically on the fly
  • Access to all 273 api calls in under 100 lines of code!

Example

To call the VideoLibrary.GetMovies function

var config = {
  XbmcHost: "127.0.0.1",
  XbmcPort: 8081,
  DebugLogging: true
}
var xbmc = require('Xbmc-Wrapper');
//See JSON-RPC documentation for full list of available parameters
var parameters = {
  properties: [
    "title",
    "genre",
    "year",
    "rating"
  ]
};
xbmc.VideoLibrary.GetMovies(parameters, function(retVal) {
  //callback
});

Full specification of the XBMC JSON-RPC available functions can be found here.

Version

1.0.0

Dependencies

Xbmc Wrapper has only one small dependency.

License

The MIT License (MIT)