Metadata-Version: 2.1
Name: botmaker
Version: 0.3.1
Summary: BotMaker API Client
Home-page: https://github.com/cuenca-mx/botmaker-python
Author: Cuenca
Author-email: dev@cuenca.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: requests (<2.22.0,>=2.21.0)
Provides-Extra: test
Requires-Dist: pytest ; extra == 'test'
Requires-Dist: pytest-vcr ; extra == 'test'
Requires-Dist: pycodestyle ; extra == 'test'
Requires-Dist: pytest-cov ; extra == 'test'
Requires-Dist: black ; extra == 'test'
Requires-Dist: isort[pipfile] ; extra == 'test'

# BotMaker client library

[![Build Status](https://travis-ci.com/cuenca-mx/botmaker-python.svg?branch=master)](https://travis-ci.com/cuenca-mx/botmaker-python)
[![Coverage Status](https://coveralls.io/repos/github/cuenca-mx/botmaker-python/badge.svg?branch=master)](https://coveralls.io/github/cuenca-mx/botmaker-python?branch=master)
[![PyPI](https://img.shields.io/pypi/v/botmaker.svg)](https://pypi.org/project/botmaker/)


## Installation

```bash
pip install botmaker
```

## Run tests

```bash
make venv
source venv/bin/activate
export BOTMAKER_ACCESS_TOKEN={access_token}
make test
```

## Release to PyPi

```bash
pip install -U setuptools wheel twine
make release
# PyPi will prompt you to log in
```

## Usage

### Send a message based on an existing template

```python
import botmaker


client = botmaker.Client()  # Will use the env var BOTMAKER_ACCESS_TOKEN

# Send from '5215500000000' to '5215522222222'
client.template_messages.create(
    '5215500000000', '5215522222222',
    'template_name', template_param1='x', template_param2='y'
)
```


