【发布时间】:2017-11-13 00:48:07
【问题描述】:
我正在使用 Twilio 测试凭据 o 向我已验证的电话号码发送示例 SMS 消息。当我运行此脚本时,它返回一个 SID,并且似乎按预期工作,只是我从未收到分机。我错过了什么?
from twilio.rest import Client
# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "AC3196c6a6fchha5de2c64a57e453e8e4b35"
auth_token = "fa1b7f6fdf3384ece5f5eda67cf7b42e28b"
client = Client(account_sid, auth_token)
message = client.messages.create(
to = "+12068515737",
from_ = "+15005550006",
body = "Jenny please?! I love you <3")
print(message.sid)
【问题讨论】:
标签: python twilio twilio-api