A python package for the Turn.io WhatsApp API
Project description
turn-python
Documentation Links
Usage
-
Get an API token from Turn (currently only tokens are supported, not username / passwords)
-
Add this as an environment variable, or pass in to the turn client
$ export TURN_AUTH_TOKEN={your token}
-
Usage
from turn import TurnClient turn_client = TurnClient(token={optionally add your token here}) # Get a user's whatsapp id wa_id = turn_client.contacts.get_whatsapp_id('123456') # Send a message turn_client.messages.send_text(wa_id, 'Hello')
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
turn-python-0.1.0.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for turn_python-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc5401f245e5cc9729b3d7b3f2e3f2cb56aed4ef509efc621ca81782e74df074 |
|
MD5 | de5a0b54f727b2c94e848085912f4619 |
|
BLAKE2b-256 | 680e50b8a3f88ed480d3b65b2d37f8984ae0fa8cd74a2949bb36aab54b526edf |