diff --git a/apireference b/apireference index 85db16ec..bc2793ca 100644 --- a/apireference +++ b/apireference @@ -5,7 +5,7 @@ reasonably functional. There are no error codes yet, General structure: http://localhost:8181 + HTTP_ROOT + /api?apikey=$apikey&cmd=$command -Data returned in json format +Data returned in json format. If executing a command like "delArtist" or "addArtist" you'll get back an "OK", else, you'll get the data you requested $commands¶meters[&optionalparameters]: diff --git a/headphones/api.py b/headphones/api.py index 2696b14f..42c3a957 100644 --- a/headphones/api.py +++ b/headphones/api.py @@ -61,6 +61,7 @@ class Api(object): def fetchData(self): if self.data == 'OK': + logger.info('Recieved API command: ' + self.cmd) methodToCall = getattr(self, "_" + self.cmd) result = methodToCall(**self.kwargs)