Did I find the right examples for you? yes no

All Samples(14)  |  Call(14)  |  Derive(0)  |  Import(0)
Record audio from caller

:param action: submit the result of the dial to this URL
:param method: submit to 'action' url using GET or POST
:param maxLength: maximum number of seconds to record
:param timeout: seconds of silence before considering the recording done

src/t/w/twilio-python-HEAD/tests/test_twiml.py   twilio-python(Download)
    def testRecordEmpty(self):
        """should record"""
        r = Response()
        r.append(twiml.Record())
        r = self.strip(r)
    def testRecordActionMethod(self):
        """should record with an action and a get method"""
        r = Response()
        r.append(twiml.Record(action="example.com", method="GET"))
        r = self.strip(r)
    def testRecordMaxlengthFinishTimeout(self):
        """should record with an maxlength, finishonkey, and timeout"""
        r = Response()
        r.append(twiml.Record(timeout=4, finishOnKey="#", maxLength=30))
        r = self.strip(r)
    def testRecordTranscribeCallback(self):
        """should record with a transcribe and transcribeCallback"""
        r = Response()
        r.append(twiml.Record(transcribeCallback="example.com"))
        r = self.strip(r)
        assert_equal(r, '<?xml version="1.0" encoding="UTF-8"?><Response><Record transcribeCallback="example.com" /></Response>')
 
    def testRecordAddAttribute(self):
        """add attribute"""
        r = twiml.Record(foo="bar")

src/p/y/python-twilio2-HEAD/tests/test_twiml.py   python-twilio2(Download)
    def testRecordEmpty(self):
        """should record"""
        r = Response()
        r.append(twiml.Record())
        r = self.strip(r)
    def testRecordActionMethod(self):
        """should record with an action and a get method"""
        r = Response()
        r.append(twiml.Record(action="example.com", method="GET"))
        r = self.strip(r)
    def testRecordMaxlengthFinishTimeout(self):
        """should record with an maxlength, finishonkey, and timeout"""
        r = Response()
        r.append(twiml.Record(timeout=4,finishOnKey="#", maxLength=30))
        r = self.strip(r)
    def testRecordTranscribeCallback(self):
        """should record with a transcribe and transcribeCallback"""
        r = Response()
        r.append(twiml.Record(transcribeCallback="example.com"))
        r = self.strip(r)
    def testRecordAddAttribute(self):
        """add attribute"""
        r = twiml.Record(foo="bar")
        r = self.strip(r)
        self.assertEquals(r, '<?xml version="1.0" encoding="utf-8"?><Record foo="bar" />')