1 Star 3 Fork 1

不得鸟的皮卡丘/淘宝客微信公众号服务端

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
sms.py 1.54 KB
一键复制 编辑 原始数据 按行查看 历史
不得鸟的皮卡丘 提交于 2020-03-14 01:29 . create object
#coding=utf-8
from aliyunsdkcore.client import AcsClient
from aliyunsdkcore.request import CommonRequest
def smsTiXian(openid, money, account, name):
client = AcsClient('6WP2c9c1jPwk6DBb', 'Y5l2k8GGr8sg6UJCDEhH62IPDiiMPt', 'default')
request = CommonRequest()
request.set_accept_format('json')
request.set_domain('dysmsapi.aliyuncs.com')
request.set_method('POST')
request.set_protocol_type('https') # https | http
request.set_version('2017-05-25')
request.set_action_name('SendSms')
request.add_query_param('PhoneNumbers', '13590060134')
request.add_query_param('SignName', '林煜凡')
request.add_query_param('TemplateCode', 'SMS_157447280')
request.add_query_param('TemplateParam', '{"openid":"%s", "money":%s, "account":"%s", "name":"%s"}'%(openid, money, account, name))
response = client.do_action(request)
return response
def smssql(reason):
client = AcsClient('6WP2c9c1jPwk6DBb', 'Y5l2k8GGr8sg6UJCDEhH62IPDiiMPt', 'default')
request = CommonRequest()
request.set_accept_format('json')
request.set_domain('dysmsapi.aliyuncs.com')
request.set_method('POST')
request.set_protocol_type('https')
request.set_version('2017-05-25')
request.set_action_name('SendSms')
request.add_query_param('PhoneNumbers', '13590060134')
request.add_query_param('SignName', '林煜凡')
request.add_query_param('TemplateCode', 'SMS_157448115')
request.add_query_param('TemplateParam', '{"reason":"%s"}'%(reason))
response = client.do_action(request)
return response
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/pikaqiu2018/mp_taobaoke_py3.git
git@gitee.com:pikaqiu2018/mp_taobaoke_py3.git
pikaqiu2018
mp_taobaoke_py3
淘宝客微信公众号服务端
master

搜索帮助