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")
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.5.tar.gz
(3.5 kB
view hashes)
Built Distributions
Close
Hashes for intelli_gateway-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 888d5d493d518d2ac69da87f33c08ca78930315edc70501ca4e717829de4f1e6 |
|
MD5 | aa593a72acb340cc1341c87f05cc96e2 |
|
BLAKE2b-256 | 9b85864cca154c14c9e3ef8a2067bfad3fe26556dc07c61bfdf5e815c62f2f77 |