From b87a34ba080e116ff3696367df1f45a5710ac37f Mon Sep 17 00:00:00 2001 From: Mike Helmick Date: Wed, 2 Nov 2011 15:41:38 -0300 Subject: [PATCH] Per Twilio Rest Docs, you should be able to set the Sms Application, Voice Application, as well as a "Friendly Name". Friendly Name was in a previous version of this library when purchasing a number, but seems to have been lost. --- twilio/rest/resources.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/twilio/rest/resources.py b/twilio/rest/resources.py index 4aa78ad18b..f9978da41e 100644 --- a/twilio/rest/resources.py +++ b/twilio/rest/resources.py @@ -859,7 +859,8 @@ def purchase(self, phone_number=None, area_code=None, voice_url=None, status_callback_url=None, status_callback_method=None, sms_url=None, sms_method=None, sms_fallback_url=None, sms_fallback_method=None, voice_caller_id_lookup=None, - account_sid=None, application_sid=None): + account_sid=None, sms_application_sid=None, + voice_application_sid=None, friendly_name=None): """ Attempt to purchase the specified number. The only required parameters are **either** phone_number or area_code @@ -880,7 +881,9 @@ def purchase(self, phone_number=None, area_code=None, voice_url=None, "StatusCallbackMethod": status_callback_method, "VoiceCallerIdLookup": voice_caller_id_lookup, "AccountSid": account_sid, - "ApplicationSid": application_sid, + "SmsApplicationSid": sms_application_sid, + "VoiceApplicationSid": voice_application_sid, + "FriendlyName": friendly_name, }) if phone_number: