Skip to main content

A package to assist with bmg sms gateway integrations in python

Project description

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

For more information regarding usage of this package visit the package homepage :

License

The project is licensed under the MIT license.

Change Log

0.0.9(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.9.tar.gz (63.1 kB view details)

Uploaded Source

File details

Details for the file bmg_sms_gateway-0.0.9.tar.gz.

File metadata

  • Download URL: bmg_sms_gateway-0.0.9.tar.gz
  • Upload date:
  • Size: 63.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for bmg_sms_gateway-0.0.9.tar.gz
Algorithm Hash digest
SHA256 1dd85246bef554be49183f1e0ce3953878ac0089f4a468c49b3abb969b5ea3fb
MD5 1efd64457ad3477089d1a0f0bf7f0468
BLAKE2b-256 134a9e92ee906200869fefbf1b86d486625a8b5be2dbd63cb03e5b313b344868

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