About
This version brings MMS webhook support to Django-twilio, adds a new view and adds deprecation warnings to an older view.
Changes
- MMS support
This adds a new default view, `django_twilio.views.message`, which will replace `django.views.sms`, and adds [MMS support](https://www.twilio.com/docs/api/rest/sending-messages#post-parameters-required) to the view using a new `media` parameter.
An example MMS message can be sent using the [normal REST API found in the Twilio-python library here](https://twilio-python.readthedocs.org/en/latest/usage/messages.html#sending-a-picture-message), but you can now reply with an MMS message in Django-twilio like so:
urls.py
urlpatterns = patterns('',
...
url(r'^sms/$', 'django_twilio.views.message', {
'message': 'Oh my glob, amazing!',
'media': 'http://i.imgur.com/UMlp0iK.jpg'
}),
...
)
Upgrading
Upgrading is nice and simple with pip:
pip install --upgrade django_twilio