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 Python 3

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

Uploaded 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