Infobip Python3 client
Description
A simple python3 client for infobip service
Infobip is a client communication service with a REST api, sadly they do not have an python3 client and my attemp to use the 2to3 library to transform the infobip python2 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())
Metadata
Release files for py3-infobip 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| py3_infobip-0.0.4.tar.gz | 6.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py3_infobip-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.1 kB
Release files / py3_infobip-0.0.4.tar.gz
| Download URL | py3_infobip-0.0.4.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a6a9bec2348656992ec5e40b94d01b1355e08a57b09176caf701775a021839d
|
|
BLAKE2b-256 checksum How to use checksums |
2c5f259a14a8d4e0a7a55b1d1ad7b7131e6942b9874f19f10bff48dbfd7b4095
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.7.6 Darwin/19.3.0
|
Release files / py3_infobip-0.0.4-py3-none-any.whl
| Download URL | py3_infobip-0.0.4-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e3759ff0902ac53319eab3d89e1511db5c463d12d180715241d01a246029b857
|
|
BLAKE2b-256 checksum How to use checksums |
827c6a4d2300a48b2fdb138c42ced79da0bdf1df4accde84ee952dcd3a4e16d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.7.6 Darwin/19.3.0
|