Official Python SDK for TSP Scale Email and WhatsApp API
Project description
tsp-scale-python
Official Python SDK for TSP Scale.
Install
pip install tsp-scale-python
Usage
from tsp_scale_python import TspScaleClient
client = TspScaleClient(
api_key="YOUR_API_KEY",
base_url="https://api.tspscale.in/api/v1",
)
result = client.send_email({
"from": "support@yourdomain.com",
"to": "user@example.com",
"subject": "Hello from TSP Scale",
"html": "<h1>It works</h1>",
})
# Send WhatsApp
client.send_whatsapp({
"to": "919988776655",
"text": "Hello from Python!",
})
print(result)
The SDK automatically adds signed security headers required by /emails/send.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tsp_scale_python-1.1.0.tar.gz.
File metadata
- Download URL: tsp_scale_python-1.1.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3706f205681ed242c4159b340c8f82a63fc459592b350d4ae6c157a7272d9d98
|
|
| MD5 |
d0831de9a66ccaee5064b3ec29c5fe7d
|
|
| BLAKE2b-256 |
680eb059136e19821bb4e5a003618d48fea866b7213c6ce402b519f046dde2a9
|
File details
Details for the file tsp_scale_python-1.1.0-py3-none-any.whl.
File metadata
- Download URL: tsp_scale_python-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5aed9602f16bc036a0a885b6555cbd7403af5481941b917d635585f7ade47fb
|
|
| MD5 |
948652990cc370f69e0cce22de5f75de
|
|
| BLAKE2b-256 |
c474c53f100c93f55e43d4644cc44abc7e99bac23407ec9d8f79f54a15d0dda2
|