Skip to main content

An package to assist with bmg sms gateway integrations in python

Project description

============ bmg_sms_gateway

.. image:: https://img.shields.io/pypi/v/country_list.svg :target: https://github.com/RONALD55/BMG-SMS-GATEWAY

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg :target: https://github.com/RONALD55/BMG-SMS-GATEWAY

Features

  • This is package can be used to integrate python programs or scripts with the BMG SMS gateway provided by :eSolutions:http://www.esolutions.co.zw/.

Installation

To can install the zim_validate package open shell or terminal and run::

pip install bmg_sms_gateway

Usage

Send Single SMS :

To send a single message use the function below. It will return response code 200 if the message has been sent. The function accepts three parameters which are username,password and body. The body is a dictionary and it should contain all the keys and shown on the example below.

.. code-block:: python

from bmg_sms_gateway import send_single_sms

username = 'username'
password = 'password'

#Message body
body = {
    "originator": "Originator",
    "destination": "Destination Mobile #",
    "messageText": "Message to be sent",
    "messageReference": "Your unique message identifier",
    "messageDate": "Message date",
    "messageValidity": "Message Validity",
    "sendDateTime": "Send Datetime"
}
print(send_single_message(username,password,body))

Description of fields

.. image:: ./bmg_sms_gateway/description.png :width: 600 :alt: Fields Description

License

The project is licensed under the MIT license.

Change Log

0.0.1(12-February-2022)

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

bmg_sms_gateway-0.0.1.tar.gz (4.1 kB view hashes)

Uploaded Source

Supported by

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