twilio/twilio-python — Issue #29: applications.create() ignores sms_url and sms_method
Author: markushx
Created: 2011-10-13 08:36:01+00:00
State: open

```
client = TwilioRestClient(account, token,
base, version)

client.applications.create(
friendly_name = "My SMS Test App2",
api_version = "2010-04-01",
sms_url = "http://xx.xx.xx.xx:8080/sms_callback2",
sms_method = "POST",
voice_url = "http://xx.xx.xx.xx:8080/sms_callback2",
voice_method = "POST")
```

will set the voice_url but not the sms_url.

sms_url and sms_method are missing in params for Applications in twilio/rest/resources.py:

```
params = transform_params({
"FriendlyName": friendly_name,
"ApiVersion": api_version,
"VoiceUrl": voice_url,
"VoiceMethod": voice_method,
"VoiceFallbackUrl": voice_fallback_url,
"VoiceFallbackMethod": voice_fallback_method,
"StatusCallback": status_callback,
"StatusCallbackMethod": status_callback_method,
"VoiceCallerIdLookup": voice_caller_id_lookup,
"SmsFallbackUrl": sms_fallback_url,
"SmsFallbackMethod": sms_fallback_method,
"SmsStatusCallback": sms_status_callback,
})
```

Adding
```
"SmsUrl": sms_url,
"SmsMethod": sms_method,
```
fixes the problem.