注册twilio账号
1.访问链接(https://twilio.com/);
2.绑定手机号;
3.获取试用号码;
4.获取SID和AUTH标志,可在Dashboard页面上找到这些消息;
发送短信
from twilio.rest import TwilioRestClient
accountSID = '124343'
authToken = '12312312'
twilioNumber = TwilioRestClient(accountSID, authToken)
myTwilioNumber = '+23123'
myCellPhone = '123123'
message = twilioClient.message.create(body = 'Hello twilio', from_=myTwilioNumber, to=meCellPhone)