Merge pull request #15 from TwilioDevEd/use-video-grant

remove configuration sid, not required for video grant
This commit is contained in:
José Oliveros
2017-05-18 17:27:57 -05:00
committed by GitHub
4 changed files with 2 additions and 7 deletions

View File

@@ -12,6 +12,3 @@ TWILIO_NOTIFICATION_SERVICE_SID=
# Required for Sync
TWILIO_SYNC_SERVICE_SID=
# Required for Video
TWILIO_CONFIGURATION_SID=

View File

@@ -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)

3
app.py
View File

@@ -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

View File

@@ -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