代码拉取完成,页面将自动刷新
#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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。