-
October 17th, 2011, 10:13 PM
#1
Boxee JSON RPC API - Shutdown/Reboot/Hibernate methods
Hello Boxee Team,
Is there a reason why I am unable to call System.Shutdown, System.Reboot and System.Hibernate via JSON RPC API even though required permissions are assigned to session ?
I always get the same infamous return code on all of the methods ""code":-32100,"message":"Failed to execute method."
Perhaps you didn't implemented these JSON methods yet or maybe am I using them incorrectly ?
The XBMC/Boxee JSON API library look promising but please don't tell me you are restricting the API System class methods for whatever reason ... Having the ability to power on, power off or suspend my boxee using a remote device using JSON is necessary. It cannot be optional for a product like Boxee. Especially when you don't provide native IR support.
Thanks.
{"jsonrpc": "2.0", "method": "Device.Connect", "params":{"deviceid": "aremote"}, "id": 1}
{"id":1,"jsonrpc":"2.0","result":{"success":tru e}}
{"jsonrpc": "2.0", "method": "JSONRPC.Ping","id": 1}
{"id":1,"jsonrpc":"2.0","result":"pong"}
{"jsonrpc": "2.0", "method": "JSONRPC.Permission","id": 1}
{"id":1,"jsonrpc":"2.0","result":{"ControlNotify": true,"ControlPlayback":true,"ControlPower":true,"GUI":true,"Logging":true,"ReadData":true,"ScanLi brary":true}}
{"jsonrpc": "2.0", "method": "System.Reboot","id": 1}
{"error":{"code":-32100,"message":"Failed to execute method."},"id":1,"jsonrpc":"2.0"}
{"id":1,"jsonrpc":"2.0","result":{"system.canreboo t":false,"system.canshutdown":false,"system.cansus pend":false}}
Last edited by Mynameis; October 18th, 2011 at 07:34 PM.
-
November 6th, 2011, 12:53 PM
#2
nevermind
Boxee team, nevermind your product is back on the shelves at the store. Not for me...
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks