Did I find the right examples for you? yes no

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

src/m/y/myewb2-HEAD/myewb/contrib/twilio/examples/example-twiml.py   myewb2(Download)
# Using Gather, Redirect
r = twilio.Response()
g = r.append(twilio.Gather(numDigits=1))
g.append(twilio.Say("Press 1"))
r.append(twilio.Redirect())

src/s/m/SMSMyBus-HEAD/apps/phone.py   SMSMyBus(Download)
      phone = self.request.get("From")
      if paywall.isUserValid(phone) is True:
          g = r.append(twilio.Gather(action=config.URL_BASE+"phone/listenforbus",
                                     method=twilio.Gather.GET,
                                     timeout=10,
      # setup the response to get the recording from the caller
      r = twilio.Response()
      g = r.append(twilio.Gather(action=config.URL_BASE+"phone/listenforstop",
                                 method=twilio.Gather.GET,
                                 timeout=5,

src/s/m/smsmybus-dev-HEAD/apps/phone.py   smsmybus-dev(Download)
      # setup the response to get the recording from the caller
      r = twilio.Response()
      g = r.append(twilio.Gather(action=config.URL_BASE+"phone/listenforbus",
                                 method=twilio.Gather.GET,
                                 timeout=10,
      # setup the response to get the recording from the caller
      r = twilio.Response()
      g = r.append(twilio.Gather(action=config.URL_BASE+"phone/listenforstop",
                                 method=twilio.Gather.GET,
                                 timeout=5,

src/m/y/myewb2-HEAD/myewb/contrib/twilio/tests/twimltests.py   myewb2(Download)
    def testEmpty(self):
        """ a gather with nothing inside"""
        r = twilio.Response()
        r.append(twilio.Gather())
        r = self.strip(r)
    def testNestedSayPlayPause(self):
        """ a gather with a say, play, and pause"""
        r = twilio.Response()
        g = twilio.Gather()
        g.append(twilio.Say("Hey"))
    def testAddAttribute(self):
        """add attribute"""
        r = twilio.Gather(foo="bar")
        r = self.strip(r)
        self.assertEquals(r, '<Gather foo="bar"/>')
 
    def testImproperNesting(self):
        """ bad nesting"""
        verb = twilio.Gather()
        self.assertRaises(twilio.TwilioException, verb.append, twilio.Gather())