Skip to main content

发送短信,dev.quanmwl.com/ability_sms --> Python版SDK

Project description

quanmsms_Python

[中文] | English

介绍

python版本要求:py3.x 安装:pip install quanmsms 最近更新:2023/12/24

使用

# 我们在sdk中提供了example.py(最小示例文件)
# 但您仍可参考本文档
# 请确认在当前环境安装了最新版sdk:pip install quanmsms

from quanmsms import sdk
# openID、Apikey以及模板都可以在 https://dev.quanmwl.com/ability_sms 查看到
# 其中,模板可以在测试接口成功后申请自定义模板
sms = sdk.SDK(
    '2',  # OpenID
    'wd4wa8d4a98w94d89wefwsef4ae9f7ad59ae46s7te49g7t4g9y65h' # Apikey
)
#                        手机号      模板id   模板参数
sendOK, info, apiStatus = sms.send('19954761564', 0, {'code': 12344})
print(sendOK) # 是否成功(布尔值)
print(apiStatus) # api状态码
print(info) # 描述信息 

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

quanmsms-0.1.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

quanmsms-0.1.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file quanmsms-0.1.1.tar.gz.

File metadata

  • Download URL: quanmsms-0.1.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.8 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.4

File hashes

Hashes for quanmsms-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0f6843995b724a1d6113b36d7623176421647b9b60fe46a0d0c489a730a1ff6b
MD5 0946c90272b5e42b76046f6928d2987a
BLAKE2b-256 af11f99577769262f825b607aee543f1702683263c394620c3f60e556d751f05

See more details on using hashes here.

File details

Details for the file quanmsms-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: quanmsms-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.8 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.4

File hashes

Hashes for quanmsms-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 369efe1b201c7a367e4483b74a381cec4e38530e533e5961163d699376e8609e
MD5 124c2e9ed550e805fe538a2f95dbcdb8
BLAKE2b-256 31cd61030d77a945f32e4e5b36396af94bfb37d0bbc667c6d295ca40c91ab890

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