A wrapper for WhatsApp's Cloud API
Project description
hiws
A Python package for interacting with WhatsApp's Cloud API.
Installation
pip install hiws
Usage
from hiws import WhatsAppMessenger
messenger = WhatsAppMessenger(access_token="YOUR_ACCESS_TOKEN", phone_number_id="YOUR_PHONE_NUMBER_ID")
# Example usage
message_id = await messenger.send_text("Hello, World!", recipient_id="RECIPIENT_ID")
print(message_id)
Development
To install in development mode:
git clone https://github.com/cervant-ai/hiws.git
cd hiws
pip install -e .
To install development dependencies:
pip install -e ".[dev]"
Testing
pytest
pip install -e ".[dev]"
Testing
pytest
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hiws-0.1.0.tar.gz
(9.3 kB
view details)
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
hiws-0.1.0-py3-none-any.whl
(9.8 kB
view details)
File details
Details for the file hiws-0.1.0.tar.gz.
File metadata
- Download URL: hiws-0.1.0.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3475bdb4696985b1d65c269121886cdd3653c52494d49803bda86f2d763cf1cc
|
|
| MD5 |
3065c8eb1abbe563a322bacd83b72504
|
|
| BLAKE2b-256 |
f9cd9c3d519ff229929eac93e6ddfcb72a7a55774d38afc4b12e6058ad9e0100
|
File details
Details for the file hiws-0.1.0-py3-none-any.whl.
File metadata
- Download URL: hiws-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87585342060820d0e5822d1d3009c45b6abb2a87916061ba61e3d5ad560e32a2
|
|
| MD5 |
503917b0d8be05d99bf94f3a2ade15e9
|
|
| BLAKE2b-256 |
e0674f1b3879ae1e64154ff50619767e47d6475649b2099eef4dda3915af0114
|