8000 Merge pull request #128 from twilio/transciption-delete-fix · Stackdriver/twilio-python@ccd5c7a · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Feb 1, 2018. It is now read-only.

Commit ccd5c7a

Browse files
author
Kevin Burke
committed
Merge pull request twilio#128 from twilio/transciption-delete-fix
add delete to list resource as well
2 parents 75a1983 + 44bfd0e commit ccd5c7a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

twilio/rest/resources/transcriptions.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def delete(self):
77
"""
88
Delete this transcription
99
"""
10-
return self.delete_instance()
10+
return self.parent.delete(self.sid)
1111

1212

1313
class Transcriptions(ListResource):
@@ -20,3 +20,9 @@ def list(self, **kwargs):
2020
Return a list of :class:`Transcription` resources
2121
"""
2222
return self.get_instances(kwargs)
23+
24+
def delete(self, sid):
25+
"""
26+
Delete the given transcription
27+
"""
28+
return self.delete_instance(sid)

0 commit comments

Comments
 (0)
0