Skip to content

A python library to assist when integrating with BMG SMS gateway

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt
Notifications You must be signed in to change notification settings

ronaldkanyepi/BMG-SMS-GATEWAY

Repository files navigation

BMG SMS GATEWAY

image image

  • This package can be used to integrate python programs or scripts with the BMG SMS gateway provided eSolutions Zimbabwe

Installation

To can install the bmg_sms_gateway 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.

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_sms(username,password,body))

Description of fields

Fields Description

License

The project is licensed under the MIT license.

About

A python library to assist when integrating with BMG SMS gateway

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages