summaryrefslogtreecommitdiff
path: root/obsapi/personapi.py
diff options
context:
space:
mode:
Diffstat (limited to 'obsapi/personapi.py')
-rw-r--r--obsapi/personapi.py17
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)