8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cef162c commit 2064949Copy full SHA for 2064949
twilio/jwt/access_token/grants.py
@@ -200,12 +200,19 @@ def to_payload(self):
200
201
class PlaybackGrant(AccessTokenGrant):
202
"""Grant to access Twilio Live stream"""
203
+
204
def __init__(self, grant=None):
205
+ """Initialize a PlaybackGrant with a grant retrieved from the Twilio API."""
206
207
self.grant = grant
208
209
@property
210
def key(self):
211
+ """Return the grant's key."""
212
213
return "player"
214
215
def to_payload(self):
216
+ """Return the grant."""
217
218
return self.grant
0 commit comments