Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.04 KB

README.md

File metadata and controls

46 lines (32 loc) · 1.04 KB

BotMaker client library

Build Status Coverage Status PyPI

Installation

pip install botmaker

Run tests

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

Release to PyPi

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

Usage

Send a message based on an existing template

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