summaryrefslogtreecommitdiff
path: root/ick2/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'ick2/client.py')
-rw-r--r--ick2/client.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/ick2/client.py b/ick2/client.py
index 47941b5..e654d29 100644
--- a/ick2/client.py
+++ b/ick2/client.py
@@ -172,6 +172,12 @@ class ControllerClient:
logging.info('Authentication URL: %r', url)
return url
+ def get_notify_url(self): # pragma: no cover
+ version = self.get_version()
+ url = version.get('notify_url')
+ logging.info('Notification URL: %r', url)
+ return url
+
def get_auth_client(self):
url = self.get_auth_url()
ac = AuthClient()
@@ -249,6 +255,10 @@ class ControllerClient:
url = self.url(path)
return self._api.get_blob(url)
+ def notify(self, notify): # pragma: no cover
+ url = self.get_notify_url()
+ self._api.post(url, body=notify)
+
class AuthClient: