Did I find the right examples for you? yes no

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

src/m/y/myewb2-HEAD/myewb/contrib/twilio/examples/example-twiml.py   myewb2(Download)
# Using Say, Dial, and Play
r = twilio.Response()
r.append(twilio.Say("Hello World", voice=twilio.Say.MAN,
    language=twilio.Say.FRENCH, loop=10))
r.append(twilio.Dial("4155551212", timeLimit=45))
r = twilio.Response()
g = r.append(twilio.Gather(numDigits=1))
g.append(twilio.Say("Press 1"))
r.append(twilio.Redirect())
print r
# Adding a Say verb multiple times
r = twilio.Response()
s = twilio.Say("Press 1")
r.append(s)
r.append(s)

src/s/m/SMSMyBus-HEAD/apps/phone.py   SMSMyBus(Download)
                                     timeout=10,
                                     finishOnKey="#"))
          g.append(twilio.Say("Welcome to SMS My Bus!"))
          g.append(twilio.Say("Enter the bus number using the keypad. Press the pound key to submit.", 
                              voice=twilio.Say.MAN,
                              language=twilio.Say.ENGLISH, 
                              loop=1))
      else:
          g = r.append(twilio.Say("Welcome to SMS My Bus. This service requires a subscription. Please visit us at sms my bus dot com for details"))
                                 numDigits=4,
                                 finishOnKey="#"))
      g.append(twilio.Say("Enter the four digit stop number using the keypad. Press the pound key to submit.", 
                          voice=twilio.Say.MAN,
                          language=twilio.Say.ENGLISH, 
      # setup the response
      r = twilio.Response()
      r.append(twilio.Say(textBody, 
                          voice=twilio.Say.MAN,
                          language=twilio.Say.ENGLISH, 

src/s/m/smsmybus-dev-HEAD/apps/phone.py   smsmybus-dev(Download)
                                 timeout=10,
                                 finishOnKey="#"))
      g.append(twilio.Say("Welcome to SMS My Bus!"))
      g.append(twilio.Say("Enter the bus number using the keypad. Press the pound key to submit.", 
                          voice=twilio.Say.MAN,
                                 numDigits=4,
                                 finishOnKey="#"))
      g.append(twilio.Say("Enter the four digit stop number using the keypad. Press the pound key to submit.", 
                          voice=twilio.Say.MAN,
                          language=twilio.Say.ENGLISH, 
      # setup the response
      r = twilio.Response()
      r.append(twilio.Say(textBody, 
                          voice=twilio.Say.MAN,
                          language=twilio.Say.ENGLISH, 

src/m/y/myewb2-HEAD/myewb/contrib/twilio/tests/twimltests.py   myewb2(Download)
    def testEmptySay(self):
        """should be a say with no text"""
        r = twilio.Response()
        r.append(twilio.Say(""))
        self.assertEquals(self.strip(r), "<Response><Say/></Response>")
 
    def testSayHelloWorld(self):
        """should say hello monkey"""
        r = twilio.Response()
        r.append(twilio.Say("Hello World"))
    def testSayLoop(self):
        """should say hello monkey and loop 3 times"""
        r = twilio.Response()
        r.append(twilio.Say("Hello Monkey", loop=3))
        r = self.strip(r)
    def testSayLoopWoman(self):
        """should say have a woman say hello monkey and loop 3 times"""
        r = twilio.Response()
        r.append(twilio.Say("Hello Monkey", loop=3, voice=twilio.Say.WOMAN))
        r = self.strip(r)
    def testSayAddAttribute(self):
        """add attribute"""
        r = twilio.Say("",foo="bar")
        r = self.strip(r)
        self.assertEquals(r, '<Say foo="bar"/>')