twilio+python拨打网上电话


# 
# Download the helper library from https://www.twilio.com/docs/python/install
import os
from twilio.rest import Client

# Set environment variables for your credentials
# Read more at http://twil.io/secure

account_sid = ""
auth_token = ""
client = Client(account_sid, auth_token)

call = client.calls.create(
  url="http://demo.twilio.com/docs/voice.xml",
  to="+1",
  from_="+1"
)

print(call.sid)

你可能感兴趣的:(一些杂七杂八的记录,python,开发语言)