diff options
Diffstat (limited to 'obsapi')
| -rw-r--r-- | obsapi/personapi.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/obsapi/personapi.py b/obsapi/personapi.py new file mode 100644 index 0000000..85baa9e --- /dev/null +++ b/obsapi/personapi.py @@ -0,0 +1,17 @@ +# -*- coding: utf-8 -*- +# +from obsapi.httpapi import ObsHttpApi + + +class ObsPersonApi(ObsHttpApi): + + rootapi = '/person/' + + def __get(self, *args, **kwargs): + return super(ObsPersonApi, self).get(*args, **kwargs) + + def get(self, user=None, **kwargs): + return self.__get(user, **kwargs) + + def get_token(self, user=None, **kwargs): + return self.__get(user, 'token', **kwargs) |
