Did I find the right examples for you? yes no

All Samples(48)  |  Call(48)  |  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))
 
# The same XML can be created above using the convenience methods
r = twilio.Response()
r.addSay("Hello World", voice=twilio.Say.MAN, language=twilio.Say.FRENCH,
    loop=10)
# ===========================================================================
# Using Gather, Redirect
r = twilio.Response()
g = r.append(twilio.Gather(numDigits=1))
g.append(twilio.Say("Press 1"))
# ===========================================================================
# Adding a Say verb multiple times
r = twilio.Response()
s = twilio.Say("Press 1")
r.append(s)
# To set arbitrary attribute / value pairs, just include the new attribute
# as a named parameter
r = twilio.Response()
r.append(twilio.Redirect(crazy="delicious"))
print r

src/s/m/SMSMyBus-HEAD/apps/phone.py   SMSMyBus(Download)
 
      # setup the response to get the recording from the caller
      r = twilio.Response()
 
      phone = self.request.get("From")
 
      # 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,
 
      # setup the response
      r = twilio.Response()
      r.append(twilio.Say(textBody, 
                          voice=twilio.Say.MAN,

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,
 
      # 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,
 
      # setup the response
      r = twilio.Response()
      r.append(twilio.Say(textBody, 
                          voice=twilio.Say.MAN,

src/s/m/smsmybus-dev-HEAD/apps/sms.py   smsmybus-dev(Download)
      # setup the response SMS
      #smsBody = "Route %s, Stop %s" % (routeID, stopID) + "\n" + response 
      r = twilio.Response()
      r.append(twilio.Sms(response))
      self.response.out.write(r)

src/s/m/SMSMyBus-HEAD/apps/sms.py   SMSMyBus(Download)
 
      # setup the response SMS
      r = twilio.Response()
      r.append(twilio.Sms(response))
      self.response.out.write(r)

src/m/y/myewb2-HEAD/myewb/contrib/twilio/tests/twimltests.py   myewb2(Download)
    def testEmptyResponse(self):
        r = twilio.Response()
        self.assertEquals(self.strip(r), "<Response/>")
 
    def testResponseAddAttribute(self):
        r = twilio.Response(foo="bar")
    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()
    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)