ActionStreamer 0.1.29__tar.gz → 0.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/Event/Event.py +33 -0
  2. {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/Event/__init__.py +2 -2
  3. {actionstreamer-0.1.29 → actionstreamer-0.2.2}/PKG-INFO +1 -1
  4. {actionstreamer-0.1.29 → actionstreamer-0.2.2}/pyproject.toml +1 -1
  5. {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/CommonFunctions/CommonFunctions.py +0 -0
  6. {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/CommonFunctions/Wifi/Wifi.py +0 -0
  7. {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/CommonFunctions/Wifi/__init__.py +0 -0
  8. {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/CommonFunctions/__init__.py +0 -0
  9. {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/API/API.py +0 -0
  10. {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/API/__init__.py +0 -0
  11. {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/Config/Config.py +0 -0
  12. {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/Config/__init__.py +0 -0
  13. {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/Device/Device.py +0 -0
  14. {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/Device/__init__.py +0 -0
  15. {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/File/File.py +0 -0
  16. {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/File/__init__.py +0 -0
  17. {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/Health/Health.py +0 -0
  18. {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/Health/__init__.py +0 -0
  19. {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/LogMessage/LogMessage.py +0 -0
  20. {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/LogMessage/__init__.py +0 -0
  21. {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/Patch/Patch.py +0 -0
  22. {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/Patch/__init__.py +0 -0
  23. {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/VideoClip/VideoClip.py +0 -0
  24. {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/VideoClip/__init__.py +0 -0
  25. {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/__init__.py +0 -0
  26. {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/__init__.py +0 -0
  27. {actionstreamer-0.1.29 → actionstreamer-0.2.2}/README.md +0 -0
@@ -4,6 +4,39 @@ import ActionStreamer
4
4
  from ActionStreamer import CommonFunctions
5
5
  from ActionStreamer.WebService.API import WebServiceResult
6
6
 
7
+ def get_pending_event_list(ws_config, device_name):
8
+
9
+ ws_result = WebServiceResult(0, '', '', '', None)
10
+
11
+ try:
12
+ method = "POST"
13
+ path = 'v1/event/list/pending'
14
+ url = ws_config.base_url + path
15
+ headers = {"Content-Type": "application/json"}
16
+ parameters = ''
17
+
18
+ json_post_data = {
19
+ "deviceName": device_name
20
+ }
21
+
22
+ body = json.dumps(json_post_data)
23
+
24
+ response_code, response_string = CommonFunctions.send_signed_request(ws_config, method, url, path, headers, parameters, body)
25
+
26
+ ws_result.http_response_code = response_code
27
+ ws_result.http_response_string = response_string
28
+ ws_result.json_data = json.loads(response_string)
29
+
30
+ except Exception as ex:
31
+ ws_result.code = -1
32
+ filename, line_number = CommonFunctions.get_exception_info()
33
+ if filename is not None and line_number is not None:
34
+ print(f"Exception occurred at line {line_number} in {filename}")
35
+ print(ex)
36
+
37
+ return ws_result
38
+
39
+
7
40
  def dequeue_event(ws_config, device_name, agent_type):
8
41
 
9
42
  ws_result = WebServiceResult(0, '', '', '', None)
@@ -1,4 +1,4 @@
1
- from .Event import create_event, dequeue_event, get_event_details, update_event
1
+ from .Event import create_event, dequeue_event, get_event_details, update_event, get_pending_event_list
2
2
 
3
3
 
4
- __all__ = ['create_event', 'dequeue_event', 'get_event_details', 'update_event']
4
+ __all__ = ['create_event', 'dequeue_event', 'get_event_details', 'update_event', 'get_pending_event_list']
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ActionStreamer
3
- Version: 0.1.29
3
+ Version: 0.2.2
4
4
  Summary: A library for the ActionStreamer API.
5
5
  Author: ActionStreamer
6
6
  Author-email: joe@actionstreamer.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "ActionStreamer"
3
- version = "0.1.29"
3
+ version = "0.2.2"
4
4
  description = "A library for the ActionStreamer API."
5
5
  authors = ["ActionStreamer <joe@actionstreamer.com>"]
6
6
  readme = "README.md"