Wednesday, October 15, 2008

Rest APIs for SageTV

Last week I reported that I had created a Java RPC api for SageTV. This week I've released the Rest API addition.

Using the Rest APIs you can access any of the SageTV services using a simple Url syntax. It helps to know and understand the javadoc, since the Rest APIs follow that structure.

For example to tell SageTV to refresh its media file collection, you can use the following url:

http://server:8080/sagex/rpcXml/Global/RunLibraryImportScan/false

or if you wanted to find a list of clients connected to your server:

http://server:8080/sagex/rpcXml/Global/GetConnectedClients


All responses are returned as Xml and documented in the project's wiki.

No comments: