Skip to main content

A python package for the WhatsApp API

Project description


Documentation Links


  1. Get an API token from Turn (currently only tokens are supported, not username / passwords)

  2. Add this as an environment variable, or pass in to the turn client

    $ export TURN_AUTH_TOKEN={your token}
  3. 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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for turn-python, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size turn_python-0.0.1-py3-none-any.whl (3.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size turn-python-0.0.1.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page