From 705fea3a570dbe34ae84d65db2ff6ae7b703805b Mon Sep 17 00:00:00 2001 From: Samuel Mendes Date: Tue, 4 Apr 2017 14:41:06 +0200 Subject: [PATCH] Update twilio-python to 6.0.0 --- clicktocall/app.py | 4 ++-- requirements.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clicktocall/app.py b/clicktocall/app.py index 2bba44b..7a00c32 100644 --- a/clicktocall/app.py +++ b/clicktocall/app.py @@ -4,7 +4,7 @@ from flask import request from flask import url_for -from twilio import twiml +from twilio.twiml.voice_response import VoiceResponse from twilio.rest import Client # Declare and configure application @@ -46,7 +46,7 @@ def call(): @app.route('/outbound', methods=['POST']) def outbound(): - response = twiml.Response() + response = VoiceResponse() response.say("Thank you for contacting our sales department. If this " "click to call application was in production, we would " diff --git a/requirements.txt b/requirements.txt index 963eb32..ca742fd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ Flask==0.10.1 tox==1.7.2 -twilio==6.0.0rc12 +twilio==6.0.0