Constructor and Description |
---|
CallCreator(PhoneNumber to,
PhoneNumber from,
String applicationSid)
Construct a new CallCreator.
|
CallCreator(PhoneNumber to,
PhoneNumber from,
URI url)
Construct a new CallCreator.
|
CallCreator(String accountSid,
PhoneNumber to,
PhoneNumber from,
String applicationSid)
Construct a new CallCreator.
|
CallCreator(String accountSid,
PhoneNumber to,
PhoneNumber from,
URI url)
Construct a new CallCreator.
|
Modifier and Type | Method and Description |
---|---|
Call |
execute(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
|
CallCreator |
setFallbackMethod(HttpMethod fallbackMethod)
The HTTP method that Twilio should use to request the `FallbackUrl`.
|
CallCreator |
setFallbackUrl(String fallbackUrl)
A URL that Twilio will request if an error occurs requesting or executing the
TwiML at `Url`.
|
CallCreator |
setFallbackUrl(URI fallbackUrl)
A URL that Twilio will request if an error occurs requesting or executing the
TwiML at `Url`.
|
CallCreator |
setIfMachine(String ifMachine)
Tell Twilio to try and determine if a machine (like voicemail) or a human has
answered the call.
|
CallCreator |
setMethod(HttpMethod method)
The HTTP method Twilio should use when requesting the URL.
|
CallCreator |
setRecord(Boolean record)
Set this parameter to true to record the entirety of a phone call.
|
CallCreator |
setSendDigits(String sendDigits)
A string of keys to dial after connecting to the number.
|
CallCreator |
setSipAuthPassword(String sipAuthPassword)
The sip_auth_password.
|
CallCreator |
setSipAuthUsername(String sipAuthUsername)
The sip_auth_username.
|
CallCreator |
setStatusCallback(String statusCallback)
A URL that Twilio will request when the call ends to notify your app.
|
CallCreator |
setStatusCallback(URI statusCallback)
A URL that Twilio will request when the call ends to notify your app.
|
CallCreator |
setStatusCallbackMethod(HttpMethod statusCallbackMethod)
The HTTP method that Twilio should use to request the `StatusCallback`.
|
CallCreator |
setTimeout(Integer timeout)
The integer number of seconds that Twilio should allow the phone to ring
before assuming there is no answer.
|
public CallCreator(PhoneNumber to, PhoneNumber from, URI url)
to
- Phone number, SIP address or client identifier to callfrom
- Twilio number from which to originate the callurl
- Url from which to fetch TwiMLpublic CallCreator(String accountSid, PhoneNumber to, PhoneNumber from, URI url)
accountSid
- The account_sidto
- Phone number, SIP address or client identifier to callfrom
- Twilio number from which to originate the callurl
- Url from which to fetch TwiMLpublic CallCreator(PhoneNumber to, PhoneNumber from, String applicationSid)
to
- Phone number, SIP address or client identifier to callfrom
- Twilio number from which to originate the callapplicationSid
- ApplicationSid that configures from where to fetch
TwiMLpublic CallCreator(String accountSid, PhoneNumber to, PhoneNumber from, String applicationSid)
accountSid
- The account_sidto
- Phone number, SIP address or client identifier to callfrom
- Twilio number from which to originate the callapplicationSid
- ApplicationSid that configures from where to fetch
TwiMLpublic CallCreator setMethod(HttpMethod method)
method
- HTTP method to use to fetch TwiMLpublic CallCreator setFallbackUrl(URI fallbackUrl)
fallbackUrl
- Fallback URL in case of errorpublic CallCreator setFallbackUrl(String fallbackUrl)
fallbackUrl
- Fallback URL in case of errorpublic CallCreator setFallbackMethod(HttpMethod fallbackMethod)
fallbackMethod
- HTTP Method to use with FallbackUrlpublic CallCreator setStatusCallback(URI statusCallback)
statusCallback
- Status Callback URLpublic CallCreator setStatusCallback(String statusCallback)
statusCallback
- Status Callback URLpublic CallCreator setStatusCallbackMethod(HttpMethod statusCallbackMethod)
statusCallbackMethod
- HTTP Method to use with StatusCallbackpublic CallCreator setSendDigits(String sendDigits)
sendDigits
- Digits to sendpublic CallCreator setIfMachine(String ifMachine)
ifMachine
- Action to take if a machine has answered the callpublic CallCreator setTimeout(Integer timeout)
timeout
- Number of seconds to wait for an answerpublic CallCreator setRecord(Boolean record)
record
- Whether or not to record the Callpublic CallCreator setSipAuthUsername(String sipAuthUsername)
sipAuthUsername
- The sip_auth_usernamepublic CallCreator setSipAuthPassword(String sipAuthPassword)
sipAuthPassword
- The sip_auth_passwordpublic Call execute(TwilioRestClient client)
Copyright © 2011 Twilio, Inc. All Rights Reserved.