Constructor and Description |
---|
CallUpdater(String accountSid,
String sid)
Construct a new CallUpdater.
|
Modifier and Type | Method and Description |
---|---|
Call |
execute(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
CallUpdater |
setFallbackMethod(HttpMethod fallbackMethod)
The HTTP method that Twilio should use to request the `FallbackUrl`.
|
CallUpdater |
setFallbackUrl(String fallbackUrl)
A URL that Twilio will request if an error occurs requesting or executing the
TwiML at `Url`..
|
CallUpdater |
setFallbackUrl(URI fallbackUrl)
A URL that Twilio will request if an error occurs requesting or executing the
TwiML at `Url`..
|
CallUpdater |
setMethod(HttpMethod method)
The HTTP method Twilio should use when requesting the URL.
|
CallUpdater |
setStatus(Call.Status status)
Either `canceled` or `completed`.
|
CallUpdater |
setStatusCallback(String statusCallback)
A URL that Twilio will request when the call ends to notify your app..
|
CallUpdater |
setStatusCallback(URI statusCallback)
A URL that Twilio will request when the call ends to notify your app..
|
CallUpdater |
setStatusCallbackMethod(HttpMethod statusCallbackMethod)
The HTTP method that Twilio should use to request the `StatusCallback`.
|
CallUpdater |
setUrl(String url)
A valid URL that returns TwiML.
|
CallUpdater |
setUrl(URI url)
A valid URL that returns TwiML.
|
public CallUpdater setUrl(URI url)
url
- URL that returns TwiMLpublic CallUpdater setUrl(String url)
url
- URL that returns TwiMLpublic CallUpdater setMethod(HttpMethod method)
method
- HTTP method to use to fetch TwiMLpublic CallUpdater setStatus(Call.Status status)
status
- Status to update the Call withpublic CallUpdater setFallbackUrl(URI fallbackUrl)
fallbackUrl
- Fallback URL in case of errorpublic CallUpdater setFallbackUrl(String fallbackUrl)
fallbackUrl
- Fallback URL in case of errorpublic CallUpdater setFallbackMethod(HttpMethod fallbackMethod)
fallbackMethod
- HTTP Method to use with FallbackUrlpublic CallUpdater setStatusCallback(URI statusCallback)
statusCallback
- Status Callback URLpublic CallUpdater setStatusCallback(String statusCallback)
statusCallback
- Status Callback URLpublic CallUpdater setStatusCallbackMethod(HttpMethod statusCallbackMethod)
statusCallbackMethod
- HTTP Method to use with StatusCallbackpublic Call execute(TwilioRestClient client)
Copyright © 2011 Twilio, Inc. All Rights Reserved.