SMS framework: Africa's Talking provider
Project description
SMSframework AfricasTalking Provider
Africa's Talking Provider for smsframework
Initialization
from smsframework import Gateway
from smsframework_africastalking import AfricasTalkingProvider
gateway = Gateway()
gateway.add_provider('africas_talking', AfricasTalkingProvider,
username='sandbox',
api_key='\*\*\*'
)
Config
username: str
: Username for your Africa's Talking account, usesandbox
for developmentRequired
api_key: str
: API key for your Africa's Talking accountRequired
Sending Parameters
Provider-specific sending params:
target_country: str
: 2-digit ISO code of the country the phonenumber should be interpretted as fromRequired
Example:
from smsframework import OutgoingMessage
message = OutgoingMessage('+254789789789', 'Hello Kenya').params(target_country='KE')
gateway.send(message)
Additional Information
AfricasTalking SMS API also supports sending premium messages and receiving incoming messages. These features are not currently implemented in this provider.
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
Built Distribution
Close
Hashes for smsframework-africastalking-1.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 801db8ab61c0b7d6de23bdcbe7c50a529858aac4aeb3211e4f91aa3b1db3de18 |
|
MD5 | f1c1ec56d32b6039cd05273e6280f5c2 |
|
BLAKE2b-256 | ddb57cbdf061014ae142b7684594248ec1b74d5edc616248247a10d5dd905100 |
Close
Hashes for smsframework_africastalking-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdc5a21ef04e0c065337a2f2d51ebe6648e6f0744265b9d000511a11ef9bd6f2 |
|
MD5 | 11d089e5d4300da317987949e6f8b079 |
|
BLAKE2b-256 | e0d908e4c97ed4cbe1c9874eb3bcbbbbcdddc8f9fa4850b91a5ef0a952946163 |