@@ -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: <Response > 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: <Response> 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: <Response > 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: <Response > 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: <Response > 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: <Response > 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: <Response > 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: <Response > element
179
181
"""
180
182
return self .append (Play (
181
183
url = 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: <Response > 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: <Response > 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: <Response > 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: <Response > 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: <Response > 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 ,
@@ -430,7 +432,7 @@ def number(self,
430
432
:param status_callback: status callback URL
431
433
:param status_callback_method: status callback URL method
432
434
:param kwargs: additional attributes
433
- :return: <Number > element
435
+ :return: <Dial > element
434
436
"""
435
437
return self .append (Number (
436
438
number ,
@@ -459,7 +461,7 @@ def queue(self,
459
461
:param reservation_sid: TaskRouter reservation SID
460
462
:param post_work_activity_sid: TaskRouter activity SID
461
463
:param kwargs: additional attributes
462
- :return: <Queue > element
464
+ :return: <Dial > element
463
465
"""
464
466
return self .append (Queue (
465
467
queue_name ,
@@ -477,6 +479,7 @@ def sim(self,
477
479
Add a <Sim> element
478
480
479
481
:param sid: sim sid
482
+ :return: <Dial> element
480
483
"""
481
484
return self .append (Sim (
482
485
sid ,
@@ -505,7 +508,7 @@ def sip(self,
505
508
:param status_callback: status callback URL
506
509
:param status_callback_method: status callback URL method
507
510
:param kwargs: additional attributes
508
- :return: <Sip > element
511
+ :return: <Dial > element
509
512
"""
510
513
return self .append (Sip (
511
514
uri ,
@@ -686,7 +689,7 @@ def say(self,
686
689
:param language: message language
687
690
:param voice: voice to use
688
691
:param kwargs: additional attributes
689
- :return: <Say > element
692
+ :return: <Gather > element
690
693
"""
691
694
return self .append (Say (
692
695
body ,
@@ -708,7 +711,7 @@ def play(self,
708
711
:param loop: times to loop
709
712
:param digits: digits to simulate
710
713
:param kwargs: additional attributes
711
- :return: <Play > element
714
+ :return: <Gather > element
712
715
"""
713
716
return self .append (Play (
714
717
url = url ,
@@ -722,7 +725,7 @@ def pause(self, length=None):
722
725
Add a new <Pause> element
723
726
724
727
:param length: time to pause
725
- :return: <Pause > element
728
+ :return: <Gather > element
726
729
"""
727
730
return self .append (Pause (length = length ))
728
731
0 commit comments