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.0.1.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for turn_python-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 990eba93b381cdeef8dd207e6359281dc95cf985b04f872f01d83e850cb8e816 |
|
MD5 | fff6ebdb8746e0a18345ee0bff22562a |
|
BLAKE2b-256 | cedb47076c498fbe2f2f1c87c71bb7000fda078004ad919c953ef9bccf0fe473 |