-
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')
dimagi/turn-python
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Python package for turn.io WhatsApp API
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published