public class PlaybackGrant extends Object implements Grant
For more information see: https://www.twilio.com/docs/api/rest/access-tokens
Constructor and Description |
---|
PlaybackGrant() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getGrant()
Get the grant payload configured in this grant.
|
String |
getGrantKey()
The key for the grant.
|
Object |
getPayload()
The payload for this grant.
|
PlaybackGrant |
setGrant(Map<String,Object> grant)
Set the playback grant
|
public Map<String,Object> getGrant()
public PlaybackGrant setGrant(Map<String,Object> grant)
grant
- the playback grantpublic String getGrantKey()
Grant
getGrantKey
in interface Grant
public Object getPayload()
Grant
The payload allows us to decouple the user API from how the grant is structured.
getPayload
in interface Grant
Copyright © 2019 Twilio, Inc. All Rights Reserved.