Skip to main content

Build Status Pythons

SMSframework Clickatell Provider

Clickatell Provider for smsframework.

You need a "Developers' Central" Clickatell account with an HTTP API set up. From the API, you need: api_id, username, password.

Installation

Install from pypi:

$ pip install smsframework_clickatell

To receive SMS messages, you need to ensure that Flask microframework is also installed:

$ pip install smsframework_clickatell[receiver]

Initialization

from smsframework import Gateway
from smsframework_clickatell import ClickatellProvider

gateway = Gateway()
gateway.add_provider('clickatell', ClickatellProvider,
    api_id=1,
    user='kolypto',
    password='123',
    https=False
)

Config

Source: /smsframework_clickatell/provider.py

  • api_id: str: API ID to use
  • user: str: Account username
  • password: str: Account password
  • https: bool: Use HTTPS for outgoing messages? Default: False

Sending Parameters

Provider-specific sending params:

  • deliv_time: int: Delay the delivery for X minutes

Example:

from smsframework import OutgoingMessage

gateway.send(OutgoingMessage('+123', 'hi').params(deliv_time=15))

Additional Information

OutgoingMessage.meta

None.

IncomingMessage.meta

  • api_id: str: API id
  • charset: str: Message character set (when applicable, else - None)
  • udh: str: Header Data (when applicable, else - None)

MessageStatus.meta

  • status: int: Message status code
  • api_id: str: API id
  • charge: float: Charged funds

Public API

ClickatellProvider.get_balance()

Returns the credist left on the account:

provider = gateway.get_provider('clickatell')
provider.get_balance() #-> 10.6

Receivers

Source: /smsframework_clickatell/receiver.py

Message Receiver: /im

After a number is purchased, go to Receive Messages > Manage long numbers / short codes, and then click the ‘Edit’ link of the two-way number which you would like to configure. Set "Reply Path" to "HTTP Get" | "HTTP Post", in the field - put the message receiver URL.

  • "Username & Password" is not supported
  • "Secondary callback" is up to you

Message Receiver URL: <provider-name>/im

Status Receiver: /status

To start getting status reports from Clickatell, edit the HTTP API in the admin panel and click on "Enable your app to receive message delivery notifications". In the field, put the receiver URL.

  • Status receiver only supports "HTTP Get" and "HTTP Post" methods.
  • "basic HTTP Authentication" is not supported

Status Receiver URL: <provider-name>/status

Metadata

Release files for smsframework-clickatell 0.0.3.post0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for smsframework-clickatell 0.0.3.post0
File Size Uploaded
smsframework-clickatell-0.0.3.post0.tar.gz 9.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for smsframework-clickatell 0.0.3.post0
File Interpreter ABI Platform
smsframework_clickatell-0.0.3.post0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 20.6 kB

Release files / smsframework-clickatell-0.0.3.post0.tar.gz

Download URL smsframework-clickatell-0.0.3.post0.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5908b53fe28dfd88e1b9b44932820e65bbc78bdb7a1474001d7fc2a5ca6a93e1
BLAKE2b-256 checksum
How to use checksums
c565b220327494228b11715126023782a410078044d6128767083568c252e1d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7

Release files / smsframework_clickatell-0.0.3.post0-py2.py3-none-any.whl

Download URL smsframework_clickatell-0.0.3.post0-py2.py3-none-any.whl
Size 11.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0b0ca24b331c2ce792f6858026019de93a7b356ec048641c31a21e8275596a1b
BLAKE2b-256 checksum
How to use checksums
34f84f4f024d3b5e04d79d8e1b3b1a05faae0351e36a5bd00bf02962fb9cac82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7

Release history Release notifications | RSS feed

This release

0.0.3.post0 This release

2 release files

0.0.1

2 release 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