Metadata-Version: 2.1
Name: py3-infobip
Version: 0.0.4
Summary: A python3 client for the infobip service
Home-page: https://github.com/nico722/infobip-python3-client
Keywords: infobip,api-client
Author: Nicolas Cardenas
Author-email: nicolas.cardenas722@gmail.com
Requires-Python: >=3.7,<4.0
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Dist: requests (>=2.23.0,<3.0.0)
Project-URL: Repository, https://github.com/nico722/infobip-python3-client
Description-Content-Type: text/markdown

# Infobip Python3 client
[![PyPI version](https://badge.fury.io/py/py3-infobip.svg)](https://pypi.org/project/py3-infobip/)
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/py3-infobip.svg)](https://pypi.org/project/py3-infobip/)
[![PyPI license](https://img.shields.io/pypi/l/py3-infobip.svg)](https://pypi.org/project/py3-infobip/)

## Description

A simple python3 client for [infobip service](https://www.infobip.com/)

Infobip is a client communication service with a [REST api](https://dev.infobip.com/), sadly they do not have an python3 client and my attemp to use the 2to3 library to transform the [infobip python2 client](https://github.com/infobip/infobip-api-python-client) failed.

This is why a simple python3 client that could consume the infobip API functionalities was needed

## Dependencies

- Python3.7+

## Installation

```
pip install py3-infobip
```

## Getting Started

If you want to send a text sms to your clients all you need is a list of phone numbers and the message you want to send.  

```
from py3_infobip import (
    SmsClient,
    SmsTextSimpleBody
)

message = SmsTextSimpleBody()
message \
    .set_to([
        '<phone_number>'
    ]) \
    .set_text('some text')

infobip_client = SmsClient(
    url='<infobip_url>',
    api_key='<infobip_apikey>'
)
response = infobip_client.send_sms_text_simple(message)
print(response.json())
```

