Constructor and Description |
---|
CallUpdater(String pathSid)
Construct a new CallUpdater.
|
CallUpdater(String pathAccountSid,
String pathSid)
Construct a new CallUpdater.
|
Modifier and Type | Method and Description |
---|---|
CallUpdater |
setFallbackMethod(HttpMethod fallbackMethod)
The HTTP method that we should use to request the `fallback_url`.
|
CallUpdater |
setFallbackUrl(String fallbackUrl)
The URL that we call using the `fallback_method` if an error occurs when
requesting or executing the TwiML at `url`.
|
CallUpdater |
setFallbackUrl(URI fallbackUrl)
The URL that we call using the `fallback_method` if an error occurs when
requesting or executing the TwiML at `url`.
|
CallUpdater |
setMethod(HttpMethod method)
The HTTP method we should use when calling the `url`.
|
CallUpdater |
setStatus(Call.UpdateStatus status)
The new status of the resource.
|
CallUpdater |
setStatusCallback(String statusCallback)
The URL we should call using the `status_callback_method` to send status
information to your application.
|
CallUpdater |
setStatusCallback(URI statusCallback)
The URL we should call using the `status_callback_method` to send status
information to your application.
|
CallUpdater |
setStatusCallbackMethod(HttpMethod statusCallbackMethod)
The HTTP method we should use when requesting the `status_callback` URL.
|
CallUpdater |
setTimeLimit(Integer timeLimit)
The maximum duration of the call in seconds.
|
CallUpdater |
setTwiml(String twiml)
TwiML instructions for the call Twilio will use without fetching Twiml from
url.
|
CallUpdater |
setTwiml(Twiml twiml)
TwiML instructions for the call Twilio will use without fetching Twiml from
url.
|
CallUpdater |
setUrl(String url)
The absolute URL that returns the TwiML instructions for the call.
|
CallUpdater |
setUrl(URI url)
The absolute URL that returns the TwiML instructions for the call.
|
Call |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public CallUpdater(String pathSid)
pathSid
- The unique string that identifies this resourcepublic CallUpdater setUrl(URI url)
url
- The absolute URL that returns TwiML for this callpublic CallUpdater setUrl(String url)
url
- The absolute URL that returns TwiML for this callpublic CallUpdater setMethod(HttpMethod method)
method
- HTTP method to use to fetch TwiMLpublic CallUpdater setStatus(Call.UpdateStatus status)
status
- The new status to update the call with.public 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 fallback_urlpublic CallUpdater setStatusCallback(URI statusCallback)
statusCallback
- The URL we should call to send status information to
your applicationpublic CallUpdater setStatusCallback(String statusCallback)
statusCallback
- The URL we should call to send status information to
your applicationpublic CallUpdater setStatusCallbackMethod(HttpMethod statusCallbackMethod)
statusCallbackMethod
- HTTP Method to use to call status_callbackpublic CallUpdater setTwiml(Twiml twiml)
twiml
- TwiML instructions for the callpublic CallUpdater setTwiml(String twiml)
twiml
- TwiML instructions for the callpublic CallUpdater setTimeLimit(Integer timeLimit)
timeLimit
- The maximum duration of the call in seconds.public Call update(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.