Skip to content

Commit fa121cd

Browse files
committed
Add client
1 parent f6bd4f5 commit fa121cd

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

tahoma_api/client.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,21 @@ async def fetch_event_listener(self, listener_id: str) -> List[Any]:
115115

116116
return response
117117

118+
async def execute_action_group(
119+
self, actions: [Command], label="python-tahoma-api", priority=False
120+
) -> List[Any]:
121+
"""
122+
Execute a non-persistent action group
123+
The executed action group does not have to be persisted on the server before use.
124+
Per-session rate-limit : 50 calls per 24 HOURS period for all operations of the same category (exec)
125+
"""
126+
payload = {"label": label, "actions": actions}
127+
response = await self.__make_http_request("POST", f"exec/apply", payload)
128+
129+
return response
130+
131+
apply_actions
132+
118133
async def __make_http_request(
119134
self, method: str, endpoint: str, payload: Optional[Any] = None
120135
) -> Any:

0 commit comments

Comments
 (0)