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.

Source Distribution

turn-python-0.2.0.tar.gz (5.3 kB view hashes)

Uploaded Source

Built Distribution

turn_python-0.2.0-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page