From c4deb8bd29182857f33de02ea4fa7f09df782f87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Oliveros?= Date: Thu, 18 May 2017 15:12:16 -0500 Subject: [PATCH] remove configuration sid, not required for video grant --- .env.example | 3 --- README.md | 1 - app.py | 3 +-- requirements.txt | 2 +- 4 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.env.example b/.env.example index e4fdf07..d3ea350 100644 --- a/.env.example +++ b/.env.example @@ -12,6 +12,3 @@ TWILIO_NOTIFICATION_SERVICE_SID= # Required for Sync TWILIO_SYNC_SERVICE_SID= - -# Required for Video -TWILIO_CONFIGURATION_SID= diff --git a/README.md b/README.md index 578c27b..3e64894 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,6 @@ Depending on which demos you'd like to run, you'll need to configure a few more | Config Value | Product Demo | Description | | :------------- |:------------- |:------------- | `TWILIO_CHAT_SERVICE_SID` | Chat | Like a database for your Chat data - [generate one in the console here](https://www.twilio.com/console/chat/services) -`TWILIO_CONFIGURATION_SID` | Video | Identifier for a set of config properties for your video application - [find yours here](https://www.twilio.com/console/video/profiles) `TWILIO_SYNC_SERVICE_SID` | Sync (Preview) | Like a database for your Sync data - [generate one in the console here](https://www.twilio.com/console/sync/services) `TWILIO_NOTIFICATION_SERVICE_SID` | Notify (Beta) | You will need to create a Notify service - [generate one here](https://www.twilio.com/console/notify/services) diff --git a/app.py b/app.py index af91c6e..b992b73 100644 --- a/app.py +++ b/app.py @@ -48,7 +48,6 @@ def config(): TWILIO_API_SECRET=bool(os.environ['TWILIO_API_SECRET']), TWILIO_CHAT_SERVICE_SID=os.environ['TWILIO_CHAT_SERVICE_SID'], TWILIO_SYNC_SERVICE_SID=os.environ['TWILIO_SYNC_SERVICE_SID'], - TWILIO_CONFIGURATION_SID=os.environ['TWILIO_CONFIGURATION_SID'] ) @app.route('/token') @@ -73,7 +72,7 @@ def token(): token.add_grant(sync_grant) # Create a Video grant and add to token - video_grant = VideoGrant(room='default_room') + video_grant = VideoGrant(room='default room') token.add_grant(video_grant) # Create an Chat grant and add to token diff --git a/requirements.txt b/requirements.txt index fec3061..f57b835 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ Flask==0.10.1 fake-factory==0.5.3 -twilio==6.1.0-alpha1 +twilio~=6.1.0-alpha1 python-dotenv==0.6.0