Metadata-Version: 2.1
Name: turn-python
Version: 0.0.1
Summary: A python package for the Turn.io WhatsApp API
Home-page: https://github.com/dimagi/turn-python/
Author: Dimagi, inc
Author-email: dev@dimagi.com
License: UNKNOWN
Description: # turn-python
        
        ## Documentation Links
        - [Turn API documentation](https://whatsapp.turn.io/docs/index.html)
        - [WhatsApp Business API](https://developers.facebook.com/docs/whatsapp)
        
        ## Usage
        
        1. Get an API token from [Turn](https://app.turn.io/) (currently only tokens are supported, not username / passwords)
        
        1. Add this as an environment variable, or pass in to the turn client
        
            ``` bash
            $ export TURN_AUTH_TOKEN={your token}
            ```
        
        1. Usage
        
            ``` python
            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')
            ```
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
