@@ -10,7 +10,7 @@ class VoiceResponse(TwiML):
10
10
"""
11
11
def __init__ (self ):
12
12
"""
13
- Create a new <Response >
13
+ Create a new <VoiceResponse >
14
14
"""
15
15
super (VoiceResponse , self ).__init__ ()
16
16
self .name = 'Response'
@@ -43,7 +43,7 @@ def dial(self,
43
43
:param recording_status_callback: status callback URL
44
44
:param recording_status_callback_method: status callback URL method
45
45
:param kwargs: additional attributes
46
- :return: <Dial > element
46
+ :return: <VoiceResponse > element
47
47
"""
48
48
return self .append (Dial (
49
49
number = number ,
@@ -64,6 +64,8 @@ def echo(self,
64
64
** kwargs ):
65
65
"""
66
66
Add a new <Echo> element
67
+
68
+ :return: <VoiceResponse> element
67
69
"""
68
70
return self .append (Echo (
69
71
** kwargs
@@ -87,7 +89,7 @@ def enqueue(self,
87
89
:param wait_url_method: wait URL method
88
90
:param workflow_sid: TaskRouter workflow SID
89
91
:param kwargs: additional attributes
90
- :return: <Enqueue > element
92
+ :return: <VoiceResponse > element
91
93
"""
92
94
return self .append (Enqueue (
93
95
name ,
@@ -127,7 +129,7 @@ def gather(self,
127
129
:param barge_in: stop playing media upon speech
128
130
:param acknowledge_sound_url: url to hit when sound starts
129
131
:param kwargs: additional attributes
130
- :return: <Gather > element
132
+ :return: <VoiceResponse > element
131
133
"""
132
134
return self .append (Gather (
133
135
action = action ,
@@ -142,15 +144,15 @@ def hangup(self):
142
144
"""
143
145
Add a new <Hangup> element
144
146
145
- :return: <Hangup > element
147
+ :return: <VoiceResponse > element
146
148
"""
147
149
return self .append (Hangup ())
148
150
149
151
def leave (self ):
150
152
"""
151
153
Add a new <Leave> element
152
154
153
- :return: <Leave > element
155
+ :return: <VoiceResponse > element
154
156
"""
155
157
return self .append (Leave ())
156
158
@@ -159,7 +161,7 @@ def pause(self, length=None):
159
161
Add a new <Pause> element
160
162
161
163
:param length: time in seconds to pause
162
- :return: <Pause > element
164
+ :return: <VoiceResponse > element
163
165
"""
164
166
return self .append (Pause (length = length ))
165
167
@@ -175,7 +177,7 @@ def play(self,
175
177
:param loop: times to loop
176
178
:param digits: play DTMF tones during a call
177
179
:param kwargs: additional attributes
178
- :return: <Play > element
180
+ :return: <VoiceResponse > element
179
181
"""
180
182
return self .append (Play (
181
183
url ,
@@ -212,7 +214,7 @@ def record(self,
212
214
:param transcribe: transcribe the recording
213
215
:param transcribe_callback: transcribe callback URL
214
216
:param kwargs: additional attributes
215
- :return: <Record > element
217
+ :return: <VoiceResponse > element
216
218
"""
217
219
return self .append (Record (
218
220
action = action ,
@@ -236,7 +238,7 @@ def redirect(self, url, method=None, **kwargs):
236
238
:param url: redirect url
237
239
:param method: redirect method
238
240
:param kwargs: additional attributes
239
- :return: <Redirect > element
241
+ :return: <VoiceResponse > element
240
242
"""
241
243
return self .append (Redirect (url , method = method , ** kwargs ))
242
244
@@ -246,7 +248,7 @@ def reject(self, reason=None, **kwargs):
246
248
247
249
:param reason: rejection reason
248
250
:param kwargs: additional attributes
249
- :return: <Reject > element
251
+ :return: <VoiceResponse > element
250
252
"""
251
253
return self .append (Reject (reason = reason , ** kwargs ))
252
254
@@ -264,7 +266,7 @@ def say(self,
264
266
:param language: language of message
265
267
:param voice: voice to use
266
268
:param kwargs: additional attributes
267
- :return: <Say > element
269
+ :return: <VoiceResponse > element
268
270
"""
269
271
return self .append (Say (
270
272
body ,
@@ -292,7 +294,7 @@ def sms(self,
292
294
:param action: action URL
293
295
:param status_callback: status callback URL
294
296
:param kwargs: additional attributes
295
- :return: <Sms > element
297
+ :return: <VoiceResponse > element
296
298
"""
297
299
return self .append (Sms (
298
300
body ,
@@ -338,7 +340,7 @@ def client(self,
338
340
:param status_callback_method: status callback URL method
339
341
:param status_callback: status callback URL
340
342
:param kwargs: additional attributes
341
- :return: <Client > element
343
+ :return: <Dial > element
342
344
"""
343
345
return self .append (Client (
344
346
name ,
@@ -388,7 +390,7 @@ def conference(self,
388
390
:param recording_status_callback: recording status callback URL
389
391
:param recording_status_callback_method: recording status callback URL method
390
392
:param kwargs: additional attributes
391
- :return: <Conference > element
393
+ :return: <Dial > element
392
394
"""
393
395
return self .append (Conference (
394
396
name ,
@@ -429,7 +431,7 @@ def number(self,
429
431
:param status_callback: status callback URL
430
432
:param status_callback_method: status callback URL method
431
433
:param kwargs: additional attributes
432
- :return: <Number > element
434
+ :return: <Dial > element
433
435
"""
434
436
return self .append (Number (
435
437
number ,
@@ -458,7 +460,7 @@ def queue(self,
458
460
:param reservation_sid: TaskRouter reservation SID
459
461
:param post_work_activity_sid: TaskRouter activity SID
460
462
:param kwargs: additional attributes
461
- :return: <Queue > element
463
+ :return: <Dial > element
462
464
"""
463
465
return self .append (Queue (
464
466
queue_name ,
@@ -476,6 +478,7 @@ def sim(self,
476
478
Add a <Sim> element
477
479
478
480
:param sid: sim sid
481
+ :return: <Dial> element
479
482
"""
480
483
return self .append (Sim (
481
484
sid ,
@@ -504,7 +507,7 @@ def sip(self,
504
507
:param status_callback: status callback URL
505
508
:param status_callback_method: status callback URL method
506
509
:param kwargs: additional attributes
507
- :return: <Sip > element
510
+ :return: <Dial > element
508
511
"""
509
512
return self .append (Sip (
510
513
uri ,
@@ -685,7 +688,7 @@ def say(self,
685
688
:param language: message language
686
689
:param voice: voice to use
687
690
:param kwargs: additional attributes
688
- :return: <Say > element
691
+ :return: <Gather > element
689
692
"""
690
693
return self .append (Say (
691
694
body ,
@@ -707,7 +710,7 @@ def play(self,
707
710
:param loop: times to loop
708
711
:param digits: digits to simulate
709
712
:param kwargs: additional attributes
710
- :return: <Play > element
713
+ :return: <Gather > element
711
714
"""
712
715
return self .append (Play (
713
716
url ,
@@ -721,7 +724,7 @@ def pause(self, length=None):
721
724
Add a new <Pause> element
722
725
723
726
:param length: time to pause
724
- :return: <Pause > element
727
+ :return: <Gather > element
725
728
"""
726
729
return self .append (Pause (length = length ))
727
730
0 commit comments