The official Unimatrix SDK for Python.
Project description
Unimatrix Python SDK
The Unimatrix Python SDK provides convenient access to integrate communication capabilities into your Python applications using the Unimatrix HTTP API. The SDK provides support for sending SMS, 2FA verification, and phone number lookup.
Getting started
Before you begin, you need an Unimatrix account. If you don't have one yet, you can sign up for an Unimatrix account and get free credits to get you started.
Documentation
Check out the documentation at unimtx.com/docs for a quick overview.
Installation
Using pip is the recommended way to install the Unimatrix SDK for Python, which is available on PyPI.
Run the following command to add uni-sdk
as a dependency to your project:
pip install uni-sdk
Usage
The following example shows how to use the Unimatrix Python SDK to interact with Unimatrix services.
Send SMS
Send a text message to a single recipient.
from uni.client import UniClient
from uni.exception import UniException
client = UniClient("your access key id", "your access key secret")
try:
res = client.messages.send({
"to": "your phone number", # in E.164 format
"signature": "your sender name",
"content": "Your verification code is 2048."
})
print(res.data)
except UniException as e:
print(e)
Reference
Other Unimatrix SDKs
To find Unimatrix SDKs in other programming languages, check out the list below:
License
This library is released under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for uni_sdk-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 919a4ee7e1469e479ffd87839a776f5032fc2f9a32454973977f0d7164a62c6a |
|
MD5 | 810ff72af0e3d017c5d288f3f3b6b0a8 |
|
BLAKE2b-256 | a637fc248ae313ef86990335406015738aa0783a572ab39e5c88441509a4723f |