def execute(self, method, params): web.header('Content-Type', 'application/json') print 'RESTAPI PASSING PARAMS', params return xbmc.executeJSONRPC(json.dumps({ 'jsonrpc': '2.0', 'method': method, 'params': params, 'id': '' }))
def GET(self): web.header("Content-Type", "application/json") return json.dumps(URLS)