Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Django (1.8 is a long-term support release)
Django==1.8
twilio
twilio==6.0.0rc12
whitenoise

# Production dependencies
Expand Down
4 changes: 2 additions & 2 deletions twilio_notifications/middleware.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import unicode_literals

from twilio.rest import TwilioRestClient
from twilio.rest import Client
from django.core.exceptions import MiddlewareNotUsed
import os
import logging
Expand Down Expand Up @@ -40,7 +40,7 @@ def __init__(self):
twilio_auth_token) = load_twilio_config()

self.twilio_number = twilio_number
self.twilio_client = TwilioRestClient(twilio_account_sid,
self.twilio_client = Client(twilio_account_sid,
twilio_auth_token)

def send_message(self, body, to):
Expand Down