qubership-pipelines-common-library 0.2.2__py3-none-any.whl → 0.2.4__py3-none-any.whl

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.
@@ -15,7 +15,6 @@
15
15
  import logging
16
16
  from webexpythonsdk import WebexAPI
17
17
 
18
-
19
18
  class WebexClient:
20
19
  def __init__(self, bot_token: str, proxies: dict = None):
21
20
  """ **`proxies`** dict for different protocols is passed to requests session.
@@ -58,7 +57,10 @@ class WebexClient:
58
57
  start or reply to a thread.
59
58
  **request_parameters: Additional request parameters (provides
60
59
  support for parameters that may be added in the future).
60
+ Returns:
61
+ dict: The API response containing details of the created message.
61
62
  """
62
- self.webex.messages.create(roomId=room_id, text=msg, files=[attachment_path] if attachment_path else None,
63
+ response = self.webex.messages.create(roomId=room_id, text=msg, files=[attachment_path] if attachment_path else None,
63
64
  parentId=parent_id, toPersonId=to_person_id, toPersonEmail=to_person_email,
64
65
  markdown=markdown, **request_parameters)
66
+ return response
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qubership-pipelines-common-library
3
- Version: 0.2.2
3
+ Version: 0.2.4
4
4
  Summary: Qubership Pipelines common library
5
5
  License: Apache-2.0
6
6
  License-File: LICENSE
@@ -25,8 +25,8 @@ qubership_pipelines_common_library/v1/utils/utils_dictionary.py,sha256=6wGAoBmLz
25
25
  qubership_pipelines_common_library/v1/utils/utils_file.py,sha256=6tCGosFjtycGJq0LtR53MiAyR8-VAxiT0-1quJ6FhcE,2233
26
26
  qubership_pipelines_common_library/v1/utils/utils_json.py,sha256=QczIlSYNOtXMuMWSznhV_BkXMM5KLn1wOogtlT2kcy0,598
27
27
  qubership_pipelines_common_library/v1/utils/utils_string.py,sha256=Phx5ZXPRjhjg9AaSPx6WLX9zQvwJH1txslfnG3jJ43w,993
28
- qubership_pipelines_common_library/v1/webex_client.py,sha256=3Ij4EGRX6bCq23dmj24E0TZ29Fq-7vd5Ejlqo0hbFvU,2860
29
- qubership_pipelines_common_library-0.2.2.dist-info/METADATA,sha256=WXjmNse7ZEvr7Xl8-HTMSKTu13Gq3iIxfLaKRBoDyFY,3017
30
- qubership_pipelines_common_library-0.2.2.dist-info/WHEEL,sha256=M5asmiAlL6HEcOq52Yi5mmk9KmTVjY2RDPtO4p9DMrc,88
31
- qubership_pipelines_common_library-0.2.2.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
32
- qubership_pipelines_common_library-0.2.2.dist-info/RECORD,,
28
+ qubership_pipelines_common_library/v1/webex_client.py,sha256=JU_0NgLu_p6zgaUi-ixgZeFMlJaTAvXwrU1oA607Bv0,2997
29
+ qubership_pipelines_common_library-0.2.4.dist-info/METADATA,sha256=uMQHpFdX31izQO4-X9aEB0OCYxNB72PzPeJGXVMXMkc,3017
30
+ qubership_pipelines_common_library-0.2.4.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
31
+ qubership_pipelines_common_library-0.2.4.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
32
+ qubership_pipelines_common_library-0.2.4.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.2.0
2
+ Generator: poetry-core 2.2.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any