Metadata-Version: 2.4
Name: himosoft-sms-api-client
Version: 1.0.0
Summary: HIMOSOFT SMS API Client.
Home-page: https://github.com/swe-himelrana/himosoft-sms-client
Author: HIMEL
Author-email: python.package@himosoft.com.bd
License: MIT
Keywords: himosoft sms api client
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.25.1
Requires-Dist: urllib3>=1.26
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Requires-Dist: black; extra == "dev"
Requires-Dist: flake8; extra == "dev"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary


# Himosoft SMS API Client

The **Himosoft SMS API Client** is a Python client that interacts with the Himosoft SMS API, enabling you to send SMS messages, check the status of sent messages, and retrieve transaction details. This client supports automatic retries in case of transient errors, making it reliable for production environments.

## Installation

```bash
pip install himosoft-sms-api-client

```

# Initialize

```python
from sms_api_client import SMSApiClient

client = SMSApiClient(
    base_url="http://localhost:8000",  # Replace with your API base URL
    sms_api_key="your-api-key",  # Replace with your SMS API key
    transaction_api_key="your-transaction-api-key"  # Replace with your transaction API key (Optional)
)
```
# Send SMS
```python
send_response = client.send_sms("8801xxxxxxx", "Your message")
print(send_response)  # The response from the API will be printed
```

# Example Send SMS response
```json
{
    "status": "success",
    "message_id": "message-id"
}
```

# Check SMS status report
```python
report_response = client.check_sms_report("your-message-id")
print(report_response)  # The delivery report will be printed
```

# BKash Payment Transaction status
```python
status_response = client.bkash_transaction_status("your-transaction-code")
print(status_response)
```
