Did I find the right examples for you? yes no

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

src/m/y/myewb2-HEAD/myewb/contrib/twilio/examples/example-twiml.py   myewb2(Download)
g = r.append(twilio.Gather(numDigits=1))
g.append(twilio.Say("Press 1"))
r.append(twilio.Redirect())
print r
 
# as a named parameter
r = twilio.Response()
r.append(twilio.Redirect(crazy="delicious"))
print r
 

src/m/y/myewb2-HEAD/myewb/contrib/twilio/tests/twimltests.py   myewb2(Download)
    def testRedirectEmpty(self):
        r = twilio.Response()
        r.append(twilio.Redirect())
        r = self.strip(r)
        self.assertEquals(r, '<Response><Redirect/></Response>')
 
    def testRedirectMethod(self):
        r = twilio.Response()
        r.append(twilio.Redirect(url="example.com", method="POST"))
    def testRedirectMethodGetParams(self):
        r = twilio.Response()
        r.append(twilio.Redirect(url="example.com?id=34&action=hey", method="POST"))
        r = self.strip(r)
        self.assertEquals(r, '<Response><Redirect method="POST">example.com?id=34&amp;action=hey</Redirect></Response>')
 
    def testAddAttribute(self):
        """add attribute"""
        r = twilio.Redirect("",foo="bar")
    def testBadAppend(self):
        """ should raise exceptions for wrong appending"""
        self.improperAppend(twilio.Redirect())