qcloudsms_py

qcloudsms_py

from qcloudsms_py import SmsVoicePromptSender
from qcloudsms_py.httpclient import HTTPError


vpsender = SmsVoicePromptSender(appid, appkey)
try:
result = vpsender.send("86", phone_numbers[0], 2, "1234", 2)
except HTTPError as e:
print(e)
except Exception as e:
print(e)

print(result)
posted @ 2018-05-07 15:15  吴悟无  阅读(428)  评论(0编辑  收藏  举报