Last active
December 24, 2015 02:39
-
-
Save skimbrel/6732288 to your computer and use it in GitHub Desktop.
twiml dial example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from twilio import twiml | |
r = twiml.Response() | |
with r.dial() as d: | |
d.number('+14155551234', url='http://example.com') | |
unicode(r) # u'<?xml version="1.0" encoding="UTF-8"?><Response><Dial><Number url="http://example.com/">+14155551234</Number></Dial></Response>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment