8000 Merge pull request #89 from mgp/patch-1 · ryanhorn/twilio-python@d446c40 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit d446c40

Browse files
committed
Merge pull request twilio#89 from mgp/patch-1
Add status_callback_url to PhoneNumber.update()
2 parents 3a9b213 + e7b14de commit d446c40

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

twilio/rest/resources/phone_numbers.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,13 @@ def transfer(self, account_sid):
7979
a = self.parent.transfer(self.name, account_sid)
8080
self.load(a.__dict__)
8181

82-
def update(self, **kwargs):
82+
def update(self, status_callback_url=None, **kwargs):
8383
"""
8484
Update this phone number instance.
8585
"""
86+
kwargs["StatusCallback"] = kwargs.get("status_callback",
87+
status_callback_url)
88+
8689
a = self.parent.update(self.name, **kwargs)
8790
self.load(a.__dict__)
8891

0 commit comments

Comments
 (0)
0