A package extending developable features of the Intelli-Africa Solutions SMS Gateway
Project description
Overview
-
Installation
-
Authenticate
-
Assign CSV file path to variable CSV for a bulk sms
-
Call either method for sending bulk or single SMSs
1. Installation
pip install intelli-sms-gateway # For Windows
pip3 install intelli-sms-gateway # For Linux
Should dependencies fail to automatically install
pip install requests && pip install pandas
#OR
pip3 install requests && pip3 install pandas
2. Authentication
Instantiate Client class byt passing the parameters email and password in that order
from intelli_sms_gateway.client import Client
# Import the client class from the client module
client = Client('foo@foo.com', 'password')
# This line of code with Authenticate you. Should you not be authenticated, it will raise an exception
Should the client be authenticated, this instantiation will return a property of value True. The reverse is true.
3. 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
4. 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
# We send a bulk SMS after authentication
client.send_bulk_sms('Please 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
# We send a single SMS after authentication
client.send_single_sms('Please attend the meeting at 1pm', '263777534224', 'Meeting announcament')
If your credentials are correct, your messages will not 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
Built Distribution
Hashes for intelli-sms-gateway-0.1.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | aac934dddb6adcc6aa0249374a4f6d365985e458ca1d14c33ae4ff7a9752af78 |
|
MD5 | 281ac79f5ec0135809f8c055066badc4 |
|
BLAKE2b-256 | d9ec626c884b669c283f7a1edbe90502e87ba7f1f7c49cc200f4479aef2c037f |
Hashes for intelli_sms_gateway-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7888dbbf2c47a3adcb1ed77b15c36bfbcede9e662cb603f5485ef819f95bb197 |
|
MD5 | c22a49124a73b0e7b554f6c0eb5015d3 |
|
BLAKE2b-256 | fe6dfda0343bff7b4d5b0c5bd536ee384fc97fe1e48ac4e4bf71313bb8da0e02 |