Skip to main content

RongLian SMS SDK

Project description

安装SDK

$ pip install ronglian_sms_sdk
Collecting ronglian_sms_sdk…
✔ Successfully installed ronglian-sdk-xx


示例


from ronglian_sms_sdk import SmsSDK

accId = '容联云通讯分配的主账号ID'
accToken = '容联云通讯分配的主账号TOKEN'
appId = '容联云通讯分配的应用ID'

def send_message():
    sdk = SmsSDK(accId, accToken, appId)
    tid = '容联云通讯创建的模板'
    mobile = '手机号1,手机号2'
    datas = ('变量1', '变量2')
    resp = sdk.sendMessage(tid, mobile, datas)
    print(resp)


发布说明

v1.0

发布日期: 2020-06-29

功能说明:

  • 提供发送模板短信功能。

目录结构

python-sms-sdk
│ readme.md
| requirements.txt
├─example
│      SendMessage.py    -- 发送短信示例
│
├─ronglian_sms_sdk
│  │  algorithm.py       -- SDK依赖算法
│  │  SmsSDK.py          -- 短信SDK
│  │  __init__.py

https://www.yuntongxun.com

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ronglian_sms_sdk-1.0.tar.gz (3.6 kB view hashes)

Uploaded source

Built Distributions

ronglian_sms_sdk-1.0.0-py3-none-any.whl (4.3 kB view hashes)

Uploaded py3

ronglian_sms_sdk-1.0-py3-none-any.whl (4.3 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page