Skip to main content

UniSMS SDK for Python.

Project description

UniSMS Python SDK

UniSMS - 高可用聚合短信服务平台官方 Python SDK.

文档

查看完整产品介绍与 API 文档请访问 UniSMS Documentation.

安装

Uni Python SDK 使用 PyPI 托管,可从公共 PyPI 仓库 中获得。

在项目中使用 pip 添加 unisms 作为依赖:

pip install unisms

使用示例

以下示例展示如何使用 Uni Python SDK 快速调用服务。

发送短信

from unisdk.sms import UniSMS
from unisdk.exception import UniException

client = UniSMS("your access key id", "your access key secret")

try:
  res = client.send({
    "to": "your phone number",
    "signature": "UniSMS",
    "templateId": "login_tmpl",
    "templateData": {
      "code": 7777
    }
  })
  print(res.data)
except UniException as e:
  print(e)

相关参考

其他语言 SDK

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

unisms-0.0.7.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

unisms-0.0.7-py2.py3-none-any.whl (4.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file unisms-0.0.7.tar.gz.

File metadata

  • Download URL: unisms-0.0.7.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for unisms-0.0.7.tar.gz
Algorithm Hash digest
SHA256 55185e66e40e100f0fdb33854cabf7c1c1430cf8e5cdf3eab70b282a280064f7
MD5 7bb5e46d235fc9c8719877341d1926ad
BLAKE2b-256 d9ab902eff7a3625cc1c2f6245d48db2ed3718a0660336dd51c8a0b156087309

See more details on using hashes here.

File details

Details for the file unisms-0.0.7-py2.py3-none-any.whl.

File metadata

  • Download URL: unisms-0.0.7-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for unisms-0.0.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f2606e68da8a39e8dac4b8fa83ea5c4575cb58e1ddbd988ef0ac522dc88d8db9
MD5 33f345c3161f4e9ab363cae2828a8d7f
BLAKE2b-256 40cb2acc0c801c2861ac5ebb66a2276baf6b48becbfe62203434106ad8d4454c

See more details on using hashes here.

Supported by

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