Skip to main content

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, use sandbox for development Required
  • api_key: str: API key for your Africa's Talking account Required

Sending Parameters

Provider-specific sending params:

  • target_country: str: 2-digit ISO code of the country the phonenumber should be interpretted as from Required

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

smsframework-africastalking-1.0.3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

smsframework_africastalking-1.0.3-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file smsframework-africastalking-1.0.3.tar.gz.

File metadata

  • Download URL: smsframework-africastalking-1.0.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for smsframework-africastalking-1.0.3.tar.gz
Algorithm Hash digest
SHA256 801db8ab61c0b7d6de23bdcbe7c50a529858aac4aeb3211e4f91aa3b1db3de18
MD5 f1c1ec56d32b6039cd05273e6280f5c2
BLAKE2b-256 ddb57cbdf061014ae142b7684594248ec1b74d5edc616248247a10d5dd905100

See more details on using hashes here.

File details

Details for the file smsframework_africastalking-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: smsframework_africastalking-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for smsframework_africastalking-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bdc5a21ef04e0c065337a2f2d51ebe6648e6f0744265b9d000511a11ef9bd6f2
MD5 11d089e5d4300da317987949e6f8b079
BLAKE2b-256 e0d908e4c97ed4cbe1c9874eb3bcbbbbcdddc8f9fa4850b91a5ef0a952946163

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page