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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

Supported by

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