def __init__(self):
self.access_key_id = 'LTAIjHdzLIPJXaIZ'
self.access_key_secret = '6cVfaC47jGhxUAmW3nt14kktGeqvSu'
self.server_address = 'https://sms.aliyuncs.com'
self.parameters = {
'Format': 'JSON',
'Version': '2016-09-27',
'AccessKeyId': self.access_key_id,
'SignatureVersion': '1.0',
'SignatureMethod': 'HMAC-SHA1',
'SignatureNonce': str(uuid.uuid1()),
'Timestamp': time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime(time.time()))
}
self.user_params = {
'Action': 'SingleSendSms',
'ParamString': '',
'RecNum': '',
'SignName': '?????',
'TemplateCode': 'SMS_39185168',
}
评论列表
文章目录