Did I find the right examples for you? yes no

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

src/m/y/myewb2-HEAD/myewb/contrib/twilio/examples/example-twiml.py   myewb2(Download)
    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 testEmptyPlay(self):
        """should play hello monkey"""
        r = twilio.Response()
        r.append(twilio.Play(""))
        r = self.strip(r)
    def testPlayHello(self):
        """should play hello monkey"""
        r = twilio.Response()
        r.append(twilio.Play("http://hellomonkey.mp3"))
        r = self.strip(r)
    def testPlayHelloLoop(self):
        """should play hello monkey loop"""
        r = twilio.Response()
        r.append(twilio.Play("http://hellomonkey.mp3", loop=3))
        r = self.strip(r)
    def testPlayAddAttribute(self):
        """add attribute"""
        r = twilio.Play("",foo="bar")
        r = self.strip(r)
        self.assertEquals(r, '<Play foo="bar"/>')
 
    def testPlayBadAppend(self):
        """ should raise exceptions for wrong appending"""
        self.improperAppend(twilio.Play(""))