发送短信,dev.quanmwl.com/ability_sms --> Python版SDK
Project description
quanmsms_Python
[中文] | English
介绍
python版本要求:py3.x 安装:pip install quanmsms 最近更新:2023/12/10 19:45
使用
# 我们在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 = sms.send('19954761564', 0, {'code': 12344})
print(sendOK) # 是否成功(布尔值)
print(info) # 描述信息
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
quanmsms-0.0.5.tar.gz
(4.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quanmsms-0.0.5.tar.gz.
File metadata
- Download URL: quanmsms-0.0.5.tar.gz
- Upload date:
- Size: 4.9 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5af3907d073a035345ecff1db3daf6f1732c5e7d4fe89e9ff9c54c1e3db5eaf
|
|
| MD5 |
af2ff2bf01d25f6995cee0409788bc61
|
|
| BLAKE2b-256 |
985fb8e62a87421a518094eebd04d33e2b3d70ee9223570e89356a6f22a8851c
|
File details
Details for the file quanmsms-0.0.5-py3-none-any.whl.
File metadata
- Download URL: quanmsms-0.0.5-py3-none-any.whl
- Upload date:
- Size: 5.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38a23b7de767088ee2b9fa8625becf0464fa683d0887b6f6b9f0ff7840af8aea
|
|
| MD5 |
9f082016c8cb4c2655cfc4616bc32f99
|
|
| BLAKE2b-256 |
6cb555e80fc479b5b072c4dc3bd2ad60d6345b9adf7821491a53f5aab1eff9bf
|