semvec/pypi-packages huggingface dataset:
bongasms 0.2.0
Python package for interacting with the API of bongasms.co.ke
License: MIT
Requires Python: >3.5, <3.8

# bongasms

![](https://img.shields.io/pypi/v/bongasms.svg)
[![Python](https://img.shields.io/pypi/pyversions/bongasms.svg)](https://img.shields.io/pypi/pyversions/bongasms.svg)
[![Issues](https://img.shields.io/github/issues-raw/giantas/bongasms-python/website.svg)](https://github.com/giantas/bongasms-python/issues)

Python package for interacting with the API of [BongaSMS](https://bongasms.co.ke)


# Installation
```
$ pip install bongasms
```

# Usage

```python
from bongasms import Message

API_KEY = 'xxx'
API_SECRET = 'yyy'
CLIENT_ID = 0

message = Message(API_KEY, API_SECRET)

# send SMS
msg = 'This is a sample'
recipient = '254xxy'
result = message.send_message(msg, recipient, CLIENT_ID)
msg_id = result['unique_id']

# check credit balance
result = message.check_balance(CLIENT_ID)

# get delivery report
result = message.get_delivery_report(msg_id, CLIENT_ID)
```

See more [examples](examples/examples.py). And, a lot more on `help(Message)`


# License
Distributed under [MIT](LICENSE)