Python library for utilizing services offered on the Intelli Africa SMS/Email Gateway
Project description
Simple Stuff
Usage
- import library
- create library instance using your email and password
- authenticate client
- make requests
Unauthenticated requests will fail. Authentication does not need to be done everytime when one wants to make a request, it can be done once and works across all requests.
Sample Code
from intelli_gateway.gateway_client import GatewayClient
client = GatewayClient("email", "password")
# Authenticate Client
client.authenticate()
# Get Account Information
client.account_information()
# Send single sms
client.send_sms(message="Hi. How are you?", receiver="263XXXXXXXXX", sender_id="Tumai")
# Send bulk sms
client.send_bulk_sms(message="Hi. How are you?", receivers=["263XXXXXXXXX", "263XXXXXXXXX"], sender_id="Tumai")
# Send Email
client.send_email(body="Hi. How are you?", setting_id="UUID", receiver_email="email", subject="Greetings")
# Send Bulk Emails
client.send_bulk_email(body="Hi. Hello everyone. We are testing messaging!", setting_id="UUID", recipients=["me@gmail.com", "i@gmail.com"], subject="Testing Tumai")
Process Flow
flowchart TD
A[Use IntelliAfrica Solutions Gateway Python Client] --> B[Create Instance];
B --> C[Authenticate Client];
C --> D{Authenticated?};
D -- Yes --> E[Process Request];
D -- No --> F[Raise Exception]
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
intelli_gateway-0.0.7.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for intelli_gateway-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 216009b0274df9e482e723860562823e1aa06369ed29e21591ca1742a28f762b |
|
MD5 | 26cef9edd49af3fff1a50788ff7ceb61 |
|
BLAKE2b-256 | 29d8c38efd39b364b782e0187c46a209b149cab732db616a01ececda6d9b974b |