python给手机发短信代码

# -*- coding:utf-8 -*- 
# -Author-= JamesBen
# Email: [email protected] 

from twilio.rest import Client
# Your Account SID from twilio.com/console
account_sid = "ACf0d2cbd138b5bec630f5d022c48a3a45"
# Your Auth Token from twilio.com/console
auth_token  = "f3a912487a986a794caea7f689d81848"
client = Client(account_sid, auth_token)
message = client.messages.create(
    to="+8618439674825",
    from_="+12058130733",
    body="Hello from Python Twilio!")


发布了153 篇原创文章 · 获赞 248 · 访问量 33万+

猜你喜欢

转载自blog.csdn.net/qq_45172832/article/details/105332738