Merge pull request #15 from TwilioDevEd/use-video-grant
remove configuration sid, not required for video grant
This commit is contained in:
@@ -12,6 +12,3 @@ TWILIO_NOTIFICATION_SERVICE_SID=
|
|||||||
|
|
||||||
# Required for Sync
|
# Required for Sync
|
||||||
TWILIO_SYNC_SERVICE_SID=
|
TWILIO_SYNC_SERVICE_SID=
|
||||||
|
|
||||||
# Required for Video
|
|
||||||
TWILIO_CONFIGURATION_SID=
|
|
||||||
|
|||||||
@@ -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 |
|
| 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_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_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)
|
`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
3
app.py
@@ -48,7 +48,6 @@ def config():
|
|||||||
TWILIO_API_SECRET=bool(os.environ['TWILIO_API_SECRET']),
|
TWILIO_API_SECRET=bool(os.environ['TWILIO_API_SECRET']),
|
||||||
TWILIO_CHAT_SERVICE_SID=os.environ['TWILIO_CHAT_SERVICE_SID'],
|
TWILIO_CHAT_SERVICE_SID=os.environ['TWILIO_CHAT_SERVICE_SID'],
|
||||||
TWILIO_SYNC_SERVICE_SID=os.environ['TWILIO_SYNC_SERVICE_SID'],
|
TWILIO_SYNC_SERVICE_SID=os.environ['TWILIO_SYNC_SERVICE_SID'],
|
||||||
TWILIO_CONFIGURATION_SID=os.environ['TWILIO_CONFIGURATION_SID']
|
|
||||||
)
|
)
|
||||||
|
|
||||||
@app.route('/token')
|
@app.route('/token')
|
||||||
@@ -73,7 +72,7 @@ def token():
|
|||||||
token.add_grant(sync_grant)
|
token.add_grant(sync_grant)
|
||||||
|
|
||||||
# Create a Video grant and add to token
|
# 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)
|
token.add_grant(video_grant)
|
||||||
|
|
||||||
# Create an Chat grant and add to token
|
# Create an Chat grant and add to token
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
Flask==0.10.1
|
Flask==0.10.1
|
||||||
fake-factory==0.5.3
|
fake-factory==0.5.3
|
||||||
twilio==6.1.0-alpha1
|
twilio~=6.1.0-alpha1
|
||||||
python-dotenv==0.6.0
|
python-dotenv==0.6.0
|
||||||
|
|||||||
Reference in New Issue
Block a user