Skip to main content

TeleSign SDK

Project description

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.

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

telesign-4.0.1.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

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

telesign-4.0.1-py2.py3-none-any.whl (11.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file telesign-4.0.1.tar.gz.

File metadata

  • Download URL: telesign-4.0.1.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.1

File hashes

Hashes for telesign-4.0.1.tar.gz
Algorithm Hash digest
SHA256 5a3f48cbb31cbc99ad6c850c8602bf5ac5a0656f5beee23bfbaef07271a618f9
MD5 c7ce92a8c0df68ebf79bfb70a92137e1
BLAKE2b-256 59e75696a2130d181c1c50b152e056aaa4d8b9febc2b448ccadc62442067e90f

See more details on using hashes here.

File details

Details for the file telesign-4.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: telesign-4.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.1

File hashes

Hashes for telesign-4.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b1661e92f84a08f791b0a23d0b8137e419447417bd82664c08fc62ef47a25f9c
MD5 419dd35671473ee7e810fca11687353b
BLAKE2b-256 3ee97c6ef6624f66f07f5912c9d4bc69da2469b1be57fae93d238ffa41127df8

See more details on using hashes here.

Supported by

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