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.2.1.tar.gz (5.8 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.2.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quanmsms-0.2.1.tar.gz
  • Upload date:
  • Size: 5.8 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.2.1.tar.gz
Algorithm Hash digest
SHA256 d609610311d4d83678d971114682a4f4c4b57417679767b05ce77f85a6c2186c
MD5 eef5f904ad3dc38a669d95a8bf2d792e
BLAKE2b-256 f027541272041748a8c960c8ee8ad5b2efc388216313bf7af431a19cafc3f498

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quanmsms-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 6.9 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2f17ab504fe1e08c1575d4b925c377a0c52f3577dab39eba181f611467bbc88b
MD5 770e53b479d93a726f9f0df5442ea89a
BLAKE2b-256 90af9e98f9077497ad935c832e063b9d7c1064cec6aabf87df1fc3dec9a88bc8

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