Did I find the right examples for you? yes no

All Samples(179)  |  Call(164)  |  Derive(0)  |  Import(15)
Twilio response object.

src/d/j/django-twilio-0.5.1/django_twilio/views.py   django-twilio(Download)
from twilio.twiml import Response
from django_twilio.decorators import twilio_view
 
 
@twilio_view
        )
    """
    r = Response()
    r.say(text, voice=voice, language=language, loop=loop)
    return r
        )
    """
    r = Response()
    r.play(url, loop=loop)
    return r
        )
    """
    r = Response()
    r.gather(action=action, method=method, numDigits=num_digits,
             timeout=timeout, finishOnKey=finish_on_key)
        )
    """
    r = Response()
    r.record(action=action, method=method, timeout=timeout,
             finishOnKey=finish_on_key, maxLength=max_length,

src/d/j/django-twilio-HEAD/django_twilio/views.py   django-twilio(Download)
from twilio.twiml import Response
from django_twilio.decorators import twilio_view
 
 
@twilio_view
        )
    """
    r = Response()
    r.say(text, voice=voice, language=language, loop=loop)
    return r
        )
    """
    r = Response()
    r.play(url, loop=loop)
    return r
        )
    """
    r = Response()
    r.gather(action=action, method=method, numDigits=num_digits,
             timeout=timeout, finishOnKey=finish_on_key)
        )
    """
    r = Response()
    r.record(action=action, method=method, timeout=timeout,
             finishOnKey=finish_on_key, maxLength=max_length,

src/r/a/rapid-response-kit-HEAD/rapid_response_kit/tools/conference_line.py   rapid-response-kit(Download)
from flask import render_template, request, redirect, flash
from rapid_response_kit.utils.helpers import twilio_numbers, parse_numbers, fallback
from twilio.twiml import Response
 
 
        if len(whitelist) > 0:
            if request.args['From'] not in whitelist:
                resp = Response()
                resp.say('Sorry, you are not authorized to call this number')
                return str(resp)
 
        room = request.args.get('room', False)
 
        if room:
            resp = Response()
 
        # Gather the room code
        resp = Response()
        with resp.gather(numDigits=3, action='/conference-line/connect',
                         method='GET') as g:
    def connect_conference_line():
        resp = Response()
        with resp.dial() as d:
            d.conference(request.args['Digits'])
        return str(resp)

src/t/w/twilio-python-HEAD/tests/test_twiml.py   twilio-python(Download)
from twilio import twiml
from twilio.twiml import TwimlException
from twilio.twiml import Response
 
 
    def testEmptyResponse(self):
        r = Response()
        assert_equal(self.strip(r), '<?xml version="1.0" encoding="UTF-8"?><Response />')
 
    def testResponseAddAttribute(self):
        r = Response(foo="bar")
    def testEmptySay(self):
        """should be a say with no text"""
        r = Response()
        r.append(twiml.Say(""))
        assert_equal(self.strip(r), '<?xml version="1.0" encoding="UTF-8"?><Response><Say /></Response>')
 
    def testSayHelloWorld(self):
        """should say hello monkey"""
        r = Response()

src/h/a/Hacker-Hotline-HEAD/app.py   Hacker-Hotline(Download)
def voice():
    response = twiml.Response()
    hacker  = getHacker(request)
    if hacker:
        response.redirect("/agent")
def caller():
    response = twiml.Response()
    response.play("/static/sounds/intro.mp3")
    response.enqueue("Hacker Hotline", waitUrl='/wait')
    return str(response)
def wait():
    response = twiml.Response()
    response.say("You are number %s in line." % request.form['QueuePosition'])
    response.play("http://demo.brooklynhacker.com/sounds/gangnamstyle.mp3")
    response.redirect(url_for('.wait', _external=True))
def agent():
    response = twiml.Response()
    with response.dial() as dial:
        dial.queue("Hacker Hotline")
    hacker = getHacker(request)
def sms():
    response = twiml.Response()
    hacker = getHacker(request)
    if hacker:
        sendSmsToHackers("%s: %s " % (agent['name'], request.form['Body']),

src/r/a/rapid-response-kit-HEAD/rapid_response_kit/tools/survey.py   rapid-response-kit(Download)
from rapid_response_kit.utils.helpers import twilio_numbers, parse_numbers
from parse_rest.datatypes import Object as pObject
from twilio.twiml import Response
 
 
 
        if result.count() > 0:
            resp = Response()
            resp.sms('Your response has been recorded')
            return str(resp)
        result.save()
 
        resp = Response()
        resp.sms('Thanks for answering our survey')
        return str(resp)

src/r/a/rapid-response-kit-HEAD/rapid_response_kit/tools/simplehelp.py   rapid-response-kit(Download)
from flask import render_template, request, redirect, flash
from rapid_response_kit.utils.helpers import echo_twimlet
from twilio.twiml import Response
from rapid_response_kit.utils.helpers import twilio_numbers
 
    def handle_menu():
 
        url = "{}?{}".format(request.base_url, request.query_string)
 
        response = Response()
    def handle_opt():
        response = Response()
 
        digit = request.form['Digits']
        opt = request.args.get('opt_' + digit, None)

src/r/a/rapid-response-kit-HEAD/rapid_response_kit/tools/ringdown.py   rapid-response-kit(Download)
from flask import render_template, request, redirect, flash
from rapid_response_kit.utils.helpers import parse_numbers, echo_twimlet, twilio_numbers
from twilio.twiml import Response
 
 
        if len(stack) == 0:
            # Nothing else to ringdown
            resp = Response()
            resp.say(sorry)
 
        qs = urlencode(data, True)
 
        resp = Response()
        resp.dial(top, timeout=10, action="/ringdown/handle?{}".format(qs),
                  method='GET')

src/g/o/govtrack.us-web-HEAD/poll_and_call/views.py   govtrack.us-web(Download)
	return { "finished": call_log.status == "ended", "msg": msg }
 
from twilio.twiml import Response as TwilioResponse
from django_twilio.decorators import twilio_view
 
	call_log.save()
 
	resp = TwilioResponse()
	resp.say("Hello from Gov Track.")
	g = resp.gather(
	call_log.log["input"]["_request"] = get_request_log_info(request)
 
	resp = TwilioResponse()
 
	if digit != "1":
	call_log.save()
 
	resp = TwilioResponse()
	resp.say("Your call to Congress has ended. Thank you for being a good citizen. Goodbye.")
	return resp
 
	# empty response
	resp = TwilioResponse()
	return resp
 

src/p/y/python-twilio2-HEAD/tests/test_twiml.py   python-twilio2(Download)
from twilio import twiml
from twilio.twiml import TwimlException
from twilio.twiml import Response
 
class TwilioTest(unittest.TestCase):
    def testEmptyResponse(self):
        r = Response()
        self.assertEquals(self.strip(r), '<?xml version="1.0" encoding="utf-8"?><Response />')
 
    def testResponseAddAttribute(self):
        r = Response(foo="bar")
    def testEmptySay(self):
        """should be a say with no text"""
        r = Response()
        r.append(twiml.Say(""))
        self.assertEquals(self.strip(r), '<?xml version="1.0" encoding="utf-8"?><Response><Say /></Response>')
 
    def testSayHelloWorld(self):
        """should say hello monkey"""
        r = Response()

  1 | 2 | 3 | 4  Next