擅长:python、mysql、java
<p>TwilioRestClient已折旧,删除“TwilioRestClient”字样,并替换如下:</p>
<pre><code>from twilio.rest import Client
account = "Account number for Twilio"
token = "Token for Twilio Account"
client = Client(account, token)
message = client.messages.create(to="+ReceiverPhone#", from_="+TwilioPhone#",
body="Text message you are sending to receiver")
#print response back from Twilio
print message
</code></pre>