Skip to main content

A Helper Library For Sending Text Messages For BulkSmsZimApi

Project description

This is a helper library for sending sms's via the BulkSmsZim Api (www.bulksmszim.co.zw)

USAGE :

1.First assign variables for the authentication token, username , to and message ie

username = 'Your Username' auth_token = 'Your API Key' to = ['263xxx', '263xxx] message = 'Your Message'

and initialise them with their respective details as supplied from the bulk sms api dashboard ie auth_token(API KEY) and username

2.Set the message variable to the required message you want

3.The to variable is a list so it must be initialised like this: to = ['263...', '263...']

4.Finally import the send_message function passing the four (username, auth_token,to and message) variables to the send_message variable and call it assigning it to a variable so as to get a response to send the message ie from BulkSmsZim.text import send_message

response = send_message(username, auth_token, to, message)

5.If message was sent successfully, 'OK' should be the response

FULL USAGE EXAMPLE :

from BulkSmsZim.text import send_message

username = 'Your Username' auth_token = 'Your API Key' to = ['263xxx', '263xxx] message = 'Your Message'

response = send_message(username, auth_token, to, message) print(response)

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

BulkSmsZim-1.2.1.tar.gz (2.0 kB view details)

Uploaded Source

File details

Details for the file BulkSmsZim-1.2.1.tar.gz.

File metadata

  • Download URL: BulkSmsZim-1.2.1.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3

File hashes

Hashes for BulkSmsZim-1.2.1.tar.gz
Algorithm Hash digest
SHA256 f202c6796aa86aabda236dbaae044049a6883ec008d8ee1ac66efd033693f638
MD5 cbecb848dcbacd28a883ed3b7a336067
BLAKE2b-256 55a77c26c97156885ae0a09c858ae2e9970408dbcb8296d535e7627cbcac5029

See more details on using hashes here.

Supported by

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