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.
- {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/Event/Event.py +33 -0
- {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/Event/__init__.py +2 -2
- {actionstreamer-0.1.29 → actionstreamer-0.2.2}/PKG-INFO +1 -1
- {actionstreamer-0.1.29 → actionstreamer-0.2.2}/pyproject.toml +1 -1
- {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/CommonFunctions/CommonFunctions.py +0 -0
- {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/CommonFunctions/Wifi/Wifi.py +0 -0
- {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/CommonFunctions/Wifi/__init__.py +0 -0
- {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/CommonFunctions/__init__.py +0 -0
- {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/API/API.py +0 -0
- {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/API/__init__.py +0 -0
- {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/Config/Config.py +0 -0
- {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/Config/__init__.py +0 -0
- {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/Device/Device.py +0 -0
- {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/Device/__init__.py +0 -0
- {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/File/File.py +0 -0
- {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/File/__init__.py +0 -0
- {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/Health/Health.py +0 -0
- {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/Health/__init__.py +0 -0
- {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/LogMessage/LogMessage.py +0 -0
- {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/LogMessage/__init__.py +0 -0
- {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/Patch/Patch.py +0 -0
- {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/Patch/__init__.py +0 -0
- {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/VideoClip/VideoClip.py +0 -0
- {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/VideoClip/__init__.py +0 -0
- {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/__init__.py +0 -0
- {actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/__init__.py +0 -0
- {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']
|
{actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/CommonFunctions/CommonFunctions.py
RENAMED
|
File without changes
|
|
File without changes
|
{actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/CommonFunctions/Wifi/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/LogMessage/LogMessage.py
RENAMED
|
File without changes
|
{actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/LogMessage/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/VideoClip/VideoClip.py
RENAMED
|
File without changes
|
{actionstreamer-0.1.29 → actionstreamer-0.2.2}/ActionStreamer/WebService/VideoClip/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|