Skip to main content
https://raw.github.com/TeleSign/python_telesign/master/python_banner.jpg https://img.shields.io/travis/TeleSign/python_telesign.svg https://img.shields.io/codecov/c/github/TeleSign/python_telesign.svg https://img.shields.io/pypi/v/telesign.svg https://img.shields.io/pypi/l/telesign.svg

TeleSign Python SDK

TeleSign is a communications platform as a service (CPaaS) company, founded on security. Since 2005, TeleSign has been a trusted partner to the world’s leading websites and mobile applications, helping secure billions of end-user accounts. Today, TeleSign’s data-driven, cloud communications platform is changing the way businesses engage with customers and prevent fraud.

For more information about TeleSign, visit our website.

Documentation

Code documentation is included in the SDK. Complete documentation, quick start guides and reference material for the TeleSign API is available within the TeleSign Standard Documentation.

Installation

To install the TeleSign Python SDK:

$ pip install telesign

Python 2.7+ is required for the TeleSign Python SDK.

Authentication

You will need a Customer ID and API Key in order to use TeleSign’s API. If you already have an account you can retrieve them from your account dashboard within the Portal. If you have not signed up yet, sign up here.

Dependencies

We make use of popular, feature-rich and well-tested open-source libraries to perform the underlying functionality of the SDK. These dependencies are managed by the community accepted package manager. If you are unable to add these additional third party dependencies to your project we have ensured that the SDK code is easy to read and can serve as sample code. We have also made sure that more complicated functions such as generate_telesign_headers can be easily extracted from the SDK and used ‘as is’ in your project.

Python Code Example: Messaging

Here is a basic code example with the JSON response.

from __future__ import print_function
from telesign.messaging import MessagingClient

customer_id = "FFFFFFFF-EEEE-DDDD-1234-AB1234567890"
api_key = "EXAMPLE----TE8sTgg45yusumoN6BYsBVkh+yRJ5czgsnCehZaOYldPJdmFh6NeX8kunZ2zU1YWaUw/0wV6xfw=="

phone_number = "phone_number"
message = "You're scheduled for a dentist appointment at 2:30PM."
message_type = "ARN"

messaging_client = MessagingClient(customer_id, api_key)
response = messaging_client.message(phone_number, message, message_type)

print(response.json)
{'reference_id': 'DGFDF6E11AB86303ASDFD425BE00000657',
 'status': {'code': 103,
    'description': 'Call in progress',
    'updated_on': '2016-12-12T00:39:58.325559Z'}}

For more examples, see the examples folder or visit the TeleSign Standard Documentation.

Metadata

Release files for telesign 4.1.1

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

Source distribution (sdist)

Source distribution for telesign 4.1.1
File Size Uploaded
telesign-4.1.1.tar.gz 16.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for telesign 4.1.1
File Interpreter ABI Platform
telesign-4.1.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 28.0 kB

Release files / telesign-4.1.1.tar.gz

Download URL telesign-4.1.1.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f2fafaf19ae95a24aee1f48b088dcc285baae39a5076794d7cfc1e7738ae8282
BLAKE2b-256 checksum
How to use checksums
7612b3b23808653b322b09c3f482083e58fa7b087e845bb2c50b577ef7846d6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.1

Release files / telesign-4.1.1-py2.py3-none-any.whl

Download URL telesign-4.1.1-py2.py3-none-any.whl
Size 11.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
d1086cc18a970ba8a69493e538019901b519fa4c13a1c6d7c76f7fc8907dcc61
BLAKE2b-256 checksum
How to use checksums
eed3862e130d8e4e09e414848bfd0553404bcf903ba31f93f4c5332e9cdcbe1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.1

Release history Release notifications | RSS feed

This release

4.1.1 This release

2 release files

4.1.0

2 release files

4.0.1

2 release files

4.0.0

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.3.1

1 release file

2.3.0

1 release file

2.2.7

1 release file

2.2.6

1 release file

2.2.5

2 release files

2.2.4

2 release files

2.2.3

2 release files

2.2.2

1 release file

2.2.1

1 release file

2.2.0

1 release file

2.1.0

1 release file

2.0.0

1 release file

1.2.3

1 release file

1.2.2

1 release file

1.2.1

1 release file

1.1.2

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.6

1.0.4

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