python-termii 0.1.0__tar.gz → 0.1.1__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.
- {python_termii-0.1.0/python_termii.egg-info → python_termii-0.1.1}/PKG-INFO +1 -1
- {python_termii-0.1.0 → python_termii-0.1.1/python_termii.egg-info}/PKG-INFO +1 -1
- {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/__init__.py +1 -1
- {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/client.py +6 -0
- {python_termii-0.1.0 → python_termii-0.1.1}/LICENSE +0 -0
- {python_termii-0.1.0 → python_termii-0.1.1}/README.md +0 -0
- {python_termii-0.1.0 → python_termii-0.1.1}/pyproject.toml +0 -0
- {python_termii-0.1.0 → python_termii-0.1.1}/python_termii.egg-info/SOURCES.txt +0 -0
- {python_termii-0.1.0 → python_termii-0.1.1}/python_termii.egg-info/dependency_links.txt +0 -0
- {python_termii-0.1.0 → python_termii-0.1.1}/python_termii.egg-info/requires.txt +0 -0
- {python_termii-0.1.0 → python_termii-0.1.1}/python_termii.egg-info/top_level.txt +0 -0
- {python_termii-0.1.0 → python_termii-0.1.1}/setup.cfg +0 -0
- {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/config.py +0 -0
- {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/http/__init__.py +0 -0
- {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/http/request_handler.py +0 -0
- {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/http/request_response.py +0 -0
- {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/services/__init__.py +0 -0
- {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/services/campaign.py +0 -0
- {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/services/contact.py +0 -0
- {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/services/message.py +0 -0
- {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/services/number.py +0 -0
- {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/services/phonebook.py +0 -0
- {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/services/sender_id.py +0 -0
- {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/services/template.py +0 -0
- {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/utils/__init__.py +0 -0
- {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/utils/exception.py +0 -0
- {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/value_object/__init__.py +0 -0
- {python_termii-0.1.0 → python_termii-0.1.1}/termii_py/value_object/phone_number.py +0 -0
|
@@ -42,6 +42,12 @@ class TermiiClient:
|
|
|
42
42
|
def __init__(self, api_key: str = None, base_url: str = None):
|
|
43
43
|
self.api_key = api_key or config.TERMII_API_KEY
|
|
44
44
|
self.base_url = base_url or config.TERMII_BASE_URL
|
|
45
|
+
|
|
46
|
+
if not self.api_key:
|
|
47
|
+
raise ValueError("api_key is required. Pass it directly or set TERMII_API_KEY in your environment.")
|
|
48
|
+
if not self.base_url:
|
|
49
|
+
raise ValueError("base_url is required. Pass it directly or set TERMII_BASE_URL in your environment.")
|
|
50
|
+
|
|
45
51
|
self.http = RequestHandler(self.api_key, self.base_url)
|
|
46
52
|
self.sender_id = SenderIDService(self.http)
|
|
47
53
|
self.message = MessageService(self.http)
|
|
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
|
|
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
|