Did I find the right examples for you? yes no

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

src/m/y/myewb2-HEAD/myewb/contrib/twilio/examples/example-twiml.py   myewb2(Download)
r.append(twilio.Say("Hello World", voice=twilio.Say.MAN,
    language=twilio.Say.FRENCH, loop=10))
r.append(twilio.Dial("4155551212", timeLimit=45))
r.append(twilio.Play("http://www.mp3.com"))
print r

src/m/y/myewb2-HEAD/myewb/contrib/twilio/tests/twimltests.py   myewb2(Download)
    def testDial(self):
        """ should redirect the call"""
        r = twilio.Response()
        r.append(twilio.Dial("1231231234"))
        r = self.strip(r)
    def testAddNumber(self):
        """add a number to a dial"""
        r = twilio.Response()
        d = twilio.Dial()
        d.append(twilio.Number("1231231234"))
    def testAddConference(self):
        """ add a conference to a dial"""
        r = twilio.Response()
        d = twilio.Dial()
        d.append(twilio.Conference("My Room"))
        self.assertRaises(twilio.TwilioException, verb.append, twilio.Hangup())
        self.assertRaises(twilio.TwilioException, verb.append, twilio.Redirect())
        self.assertRaises(twilio.TwilioException, verb.append, twilio.Dial())
        self.assertRaises(twilio.TwilioException, verb.append, twilio.Conference(""))
        self.assertRaises(twilio.TwilioException, verb.append, twilio.Sms(""))