Skip to main content

A python package for the Turn.io WhatsApp API

Project description

turn-python

Documentation Links

Usage

  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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file turn-python-0.2.0.tar.gz.

File metadata

  • Download URL: turn-python-0.2.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for turn-python-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b6a7f9509279bd76bf8690bcb0a699340434105cfa5be471d4797b07e69034f6
MD5 6428148a48a770d2205e55a160eb825f
BLAKE2b-256 1387dc97dd131efa46ff2c4d5af2cf1a0b0254a6ad87e8b59882c9173e8fc327

See more details on using hashes here.

File details

Details for the file turn_python-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: turn_python-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for turn_python-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e2a7844fabe502c7e59b73b43afad813ced23f31ab39a0f0e918f936119f2b83
MD5 b4654fb208bfebe3584f5c1f7b3401cc
BLAKE2b-256 fadcfa01ab410317a5c1d07115f4004060a1098137f40af050c60674ff91c701

See more details on using hashes here.

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