Example #1
0
 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': ''
     }))
Example #2
0
 def GET(self):
     web.header("Content-Type", "application/json")
     return json.dumps(URLS)