短信接口示例
这篇文章主要为大家分享Python短信接口代码,Python短信发送、Python批量发送、Python短信验证码发送,感兴趣的小伙伴们可以参考一下。
# -*- coding: utf-8 -*- import sys, urllib, urllib2, json url = 'https://www.suisms.net/sms.aspx?action=send&userid=userid&account=account&password=password&mobile=mobile&content=content' req = urllib2.Request(url) resp = urllib2.urlopen(req) content = resp.read() if(content): print(content)