public class VoiceGrant extends Object implements Grant
For more information see: https://www.twilio.com/docs/api/rest/access-tokens
| Modifier and Type | Class and Description |
|---|---|
class |
VoiceGrant.Payload |
| Constructor and Description |
|---|
VoiceGrant() |
| Modifier and Type | Method and Description |
|---|---|
String |
getGrantKey()
The key for the grant.
|
Object |
getPayload()
The payload for this grant.
|
VoiceGrant |
setEndpointId(String endpointId) |
VoiceGrant |
setOutgoingApplication(String outgoingApplicationSid,
Map<String,Object> outgoingApplicationParams)
Set the outgoing application.
|
VoiceGrant |
setOutgoingApplicationSid(String outgoingApplicationSid) |
VoiceGrant |
setPushCredentialSid(String pushCredentialSid) |
public VoiceGrant setOutgoingApplicationSid(String outgoingApplicationSid)
public VoiceGrant setOutgoingApplication(String outgoingApplicationSid, Map<String,Object> outgoingApplicationParams)
outgoingApplicationSid - outgoing application sidoutgoingApplicationParams - outgoing application parameterspublic VoiceGrant setPushCredentialSid(String pushCredentialSid)
public VoiceGrant setEndpointId(String endpointId)
public String getGrantKey()
GrantgetGrantKey in interface Grantpublic Object getPayload()
GrantThe payload allows us to decouple the user API from how the grant is structured.
getPayload in interface GrantCopyright © 2016 Twilio, Inc. All Rights Reserved.