2017-06-17 76 views

回答

1

Twilio开发人员在这里传播。

您应该能够使用美国Twilio号码向印度发送消息。这里有一些注意事项和注意事项。

  • 如果你是刚开始使用Twilio和没有升级你的账户,你可以只发送短信到您与Twilio验证从一个普通Twilio数计数促销送往印度
  • 消息数并且具有以下限制:
    1. 无法在20分钟内将同一国际号码的相同信息发送到相同的目的地号码。
    2. 营销信息应在当地时间上午9点到晚上9点之间发送。
    3. 国际号码的发件人ID将被替换为XX-NNNNNN(2个字母后跟6个数字)。在发送给印度的限制

更多详细信息,请访问:https://support.twilio.com/hc/en-us/articles/223134167-Limitations-sending-SMS-messages-to-Indian-mobile-devices

最后,using Python to send SMS messages是绝对有可能的。我建议你安装Twilio helper library for Python。然后你需要的代码如下所示:

from twilio.rest import Client 

# put your own credentials here 
account_sid = "you_account_sid" 
auth_token = "your_auth_token" 

client = Client(account_sid, auth_token) 

client.messages.create(
    to=TO_NUMBER, 
    from_=YOUR_TWILIO_NUMBER, 
    body="Hello from Twilio!") 
+0

非常感谢。它工作 –

+0

太棒了!你介意把答案标记为正确的,以便其他人可以看到它的工作很容易吗?谢谢! – philnash

相关问题