Skip to main content
=====================================================================
sbt-python-client: Wrapper for consuming `solutions by text REST API <https://www.solutionsbytext.com/api-support/api-documentation/>`_.
=====================================================================

sbt-python-client implements solutionsbytext REST APIs for python.

============

* Python Python 3.5+

Install
============

The quick way::

pip install sbt-python-client


Typical usage often looks like this :

1. Security Token

.. code-block:: python

from solutions_by_text import create_security_token

API_KEY = '<API_KEY_PROVIDED_BY_SBT>'

# use 'ui' for production and 'test' for stagging APIs
STAGE = 'test'

security_token = create_security_token(API_KEY, STAGE)


1. Carrier

.. code-block:: python

from solutions_by_text import carrier

security_token = create_security_token(API_KEY, STAGE)

carrier_object = carrier.CarrierLookUp(
security_token=security_token,
org_code='ORG_CODE',
stage=STAGE,
phone='<PHONE_NUMBER>')

response = carrier_object.get()


2. Subscriber

.. code-block:: python

from solutions_by_text import subscriber

phones = '%s' % (["XXXXXXXXXX", "ZZZZZZZZZZ"])
subscriber_object = subscriber.SubscriberStatus(
security_token=security_token,
org_code='ORG_CODE',
stage=STAGE,
phone=phones)

response = subscriber_object.get()


2. Message

.. code-block:: python

from solutions_by_text import message

phone = "XXXXXXXXXX"
my_message = "This is my text message"
message_object = message.Message(
security_token=security_token,
org_code='ORG_CODE',
stage=STAGE,
phone=phone,
message=my_message)

response = message_object.send()

Metadata

Release files for sbt-python-client 1.0.8

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

Source distribution (sdist)

Source distribution for sbt-python-client 1.0.8
File Size Uploaded Provenance Actions
sbt-python-client-1.0.8.tar.gz 4.7 kB Without provenance Details for sbt-python-client-1.0.8.tar.gz

Release files / sbt-python-client-1.0.8.tar.gz

Download URL sbt-python-client-1.0.8.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9cb2133a117ba686672db30fc1eab56c40e091b70a99f692db690524b2c14195
BLAKE2b-256 checksum
How to use checksums
370b326121ef50e598eb9d903d342492228031fa354f6151d3a42651eca86027
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.5

Security for sbt-python-client 1.0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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