Skip to main content

A python3 client for the infobip service

Project description

Infobip Python3 client

PyPI version PyPI pyversions PyPI license

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py3_infobip-0.0.4.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py3_infobip-0.0.4-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file py3_infobip-0.0.4.tar.gz.

File metadata

  • Download URL: py3_infobip-0.0.4.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.6 Darwin/19.3.0

File hashes

Hashes for py3_infobip-0.0.4.tar.gz
Algorithm Hash digest
SHA256 4a6a9bec2348656992ec5e40b94d01b1355e08a57b09176caf701775a021839d
MD5 0c1a6b778349978075507edcbccfc628
BLAKE2b-256 2c5f259a14a8d4e0a7a55b1d1ad7b7131e6942b9874f19f10bff48dbfd7b4095

See more details on using hashes here.

File details

Details for the file py3_infobip-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: py3_infobip-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.6 Darwin/19.3.0

File hashes

Hashes for py3_infobip-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e3759ff0902ac53319eab3d89e1511db5c463d12d180715241d01a246029b857
MD5 9eba98c949f1a1dd85a462edf56bd179
BLAKE2b-256 827c6a4d2300a48b2fdb138c42ced79da0bdf1df4accde84ee952dcd3a4e16d5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page