Skip to main content

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.

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.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smsframework_africastalking-1.0.2-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: smsframework-africastalking-1.0.2.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.1 CPython/3.6.7

File hashes

Hashes for smsframework-africastalking-1.0.2.tar.gz
Algorithm Hash digest
SHA256 716597842e04e198889242d12c621e71e1e752dd8777ea7f689de4dcd3ffd443
MD5 8f57a3f492ff39713be6758f7c474dfd
BLAKE2b-256 10ffa212ad8d64d5796e160adc1ca30e3e59735dc6be01fb31f69ca1398b22a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: smsframework_africastalking-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.7 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.1 CPython/3.6.7

File hashes

Hashes for smsframework_africastalking-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 79fa8ad99bc93efd889ed1281690a779d609e63f52539754af37bd0105d0b80c
MD5 ff4e3ea8c824d5c82f01cb6cbe942713
BLAKE2b-256 706add8b69a095b624f2bf5c5c029edd7e7053b3a7e2d1a5f4d7802dde8671ed

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.3

2 files

This release

1.0.2 This release

2 files

1.0.1

2 files

1.0.0

3 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page