A package extending developable features of the Intelli-Africa Solutions SMS Gateway
Project description
Overview
-
Authenticate
-
Assign CSV file path to variable CSV for a bulk sms
-
Call either method for sending bulk or single SMSs
1. Authentication
Instantiate Client class byt passing the parameters email and password in that order
client = Client('foo@foo.com', 'passowrd')
Should the client be authenticated, this instantiation will return a property of value True. The reverse is true.
2. Getting Details On a Bulk SMS from a CSV
Define a variable, assign to it the path of the csv file you want to use Make sure the first column in the CSV is named 'numbers' or the program will return errors. Phone numbers must be in the format 263777534224
3. Sending the messages
Bulk SMSes
Call the single SMS method of the client instance and pass the required parameters namely: message, csv, title The CSV that is being passed is the variable that contains the path to the CSV. Should the path be incorrect, errors will be raised
client.send_bulk_sms('May all employees attend the meeting at 1pm', csv_variable, 'Meeting announcament')
Single SMSes
Call the single SMS method of the client instance and pass the required parameters namely: message, receiver, title Phone numbers must be in the format 263777534224
client.send_single_sms('May all employees attend the meeting at 1pm', '263777534224', 'Meeting announcament')
If your credentials are correct, your messages will be sent
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for intelli-sms-gateway-0.0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4372f510b32c8e49fc985e7b454871aed913ac99616fc595b23e9ed64d20408b |
|
MD5 | 2fc86f7447f1b4af13413640d8cd74d6 |
|
BLAKE2b-256 | 121b69e6c3b8c010c6ad7375be86fcd3a18f41ea4fffe27bc03d76ef41d0b786 |