public class ApplicationUpdater extends Updater<Application>
Constructor and Description |
---|
ApplicationUpdater(String sid)
Construct a new ApplicationUpdater.
|
ApplicationUpdater(String accountSid,
String sid)
Construct a new ApplicationUpdater.
|
Modifier and Type | Method and Description |
---|---|
Application |
execute(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
ApplicationUpdater |
setApiVersion(String apiVersion)
Requests to this application will start a new TwiML session with this API
version..
|
ApplicationUpdater |
setFriendlyName(String friendlyName)
A human readable descriptive text for this resource, up to 64 characters
long..
|
ApplicationUpdater |
setMessageStatusCallback(String messageStatusCallback)
Twilio will make a `POST` request to this URL to pass status parameters (such
as sent or failed) to your application if you use the `/Messages` endpoint to
send the message and specify this application's `Sid` as the `ApplicationSid`
on an outgoing SMS request..
|
ApplicationUpdater |
setMessageStatusCallback(URI messageStatusCallback)
Twilio will make a `POST` request to this URL to pass status parameters (such
as sent or failed) to your application if you use the `/Messages` endpoint to
send the message and specify this application's `Sid` as the `ApplicationSid`
on an outgoing SMS request..
|
ApplicationUpdater |
setSmsFallbackMethod(HttpMethod smsFallbackMethod)
The HTTP method Twilio will use when requesting the above URL.
|
ApplicationUpdater |
setSmsFallbackUrl(String smsFallbackUrl)
The URL that Twilio will request if an error occurs retrieving or executing
the TwiML from `SmsUrl`..
|
ApplicationUpdater |
setSmsFallbackUrl(URI smsFallbackUrl)
The URL that Twilio will request if an error occurs retrieving or executing
the TwiML from `SmsUrl`..
|
ApplicationUpdater |
setSmsMethod(HttpMethod smsMethod)
The HTTP method Twilio will use when making requests to the `SmsUrl`.
|
ApplicationUpdater |
setSmsStatusCallback(String smsStatusCallback)
The URL that Twilio will `POST` to when a message is sent via the
`/SMS/Messages` endpoint if you specify the `Sid` of this application on an
outgoing SMS request..
|
ApplicationUpdater |
setSmsStatusCallback(URI smsStatusCallback)
The URL that Twilio will `POST` to when a message is sent via the
`/SMS/Messages` endpoint if you specify the `Sid` of this application on an
outgoing SMS request..
|
ApplicationUpdater |
setSmsUrl(String smsUrl)
The URL Twilio will request when a phone number assigned to this application
receives an incoming SMS message..
|
ApplicationUpdater |
setSmsUrl(URI smsUrl)
The URL Twilio will request when a phone number assigned to this application
receives an incoming SMS message..
|
ApplicationUpdater |
setStatusCallback(String statusCallback)
The URL that Twilio will request to pass status parameters (such as call
ended) to your application..
|
ApplicationUpdater |
setStatusCallback(URI statusCallback)
The URL that Twilio will request to pass status parameters (such as call
ended) to your application..
|
ApplicationUpdater |
setStatusCallbackMethod(HttpMethod statusCallbackMethod)
The HTTP method Twilio will use to make requests to the `StatusCallback` URL.
|
ApplicationUpdater |
setVoiceCallerIdLookup(Boolean voiceCallerIdLookup)
Look up the caller's caller-ID name from the CNAM database (additional
charges apply).
|
ApplicationUpdater |
setVoiceFallbackMethod(HttpMethod voiceFallbackMethod)
The HTTP method Twilio will use when requesting the `VoiceFallbackUrl`.
|
ApplicationUpdater |
setVoiceFallbackUrl(String voiceFallbackUrl)
The URL that Twilio will request if an error occurs retrieving or executing
the TwiML requested by `Url`..
|
ApplicationUpdater |
setVoiceFallbackUrl(URI voiceFallbackUrl)
The URL that Twilio will request if an error occurs retrieving or executing
the TwiML requested by `Url`..
|
ApplicationUpdater |
setVoiceMethod(HttpMethod voiceMethod)
The HTTP method Twilio will use when requesting the above `Url`.
|
ApplicationUpdater |
setVoiceUrl(String voiceUrl)
The URL Twilio will request when a phone number assigned to this application
receives a call..
|
ApplicationUpdater |
setVoiceUrl(URI voiceUrl)
The URL Twilio will request when a phone number assigned to this application
receives a call..
|
public ApplicationUpdater(String sid)
sid
- The sidpublic ApplicationUpdater setFriendlyName(String friendlyName)
friendlyName
- Human readable description of this resourcepublic ApplicationUpdater setApiVersion(String apiVersion)
apiVersion
- The API version to usepublic ApplicationUpdater setVoiceUrl(URI voiceUrl)
voiceUrl
- URL Twilio will make requests to when relieving a callpublic ApplicationUpdater setVoiceUrl(String voiceUrl)
voiceUrl
- URL Twilio will make requests to when relieving a callpublic ApplicationUpdater setVoiceMethod(HttpMethod voiceMethod)
voiceMethod
- HTTP method to use with the URLpublic ApplicationUpdater setVoiceFallbackUrl(URI voiceFallbackUrl)
voiceFallbackUrl
- Fallback URLpublic ApplicationUpdater setVoiceFallbackUrl(String voiceFallbackUrl)
voiceFallbackUrl
- Fallback URLpublic ApplicationUpdater setVoiceFallbackMethod(HttpMethod voiceFallbackMethod)
voiceFallbackMethod
- HTTP method to use with the fallback urlpublic ApplicationUpdater setStatusCallback(URI statusCallback)
statusCallback
- URL to hit with status updatespublic ApplicationUpdater setStatusCallback(String statusCallback)
statusCallback
- URL to hit with status updatespublic ApplicationUpdater setStatusCallbackMethod(HttpMethod statusCallbackMethod)
statusCallbackMethod
- HTTP method to use with the status callbackpublic ApplicationUpdater setVoiceCallerIdLookup(Boolean voiceCallerIdLookup)
voiceCallerIdLookup
- True or Falsepublic ApplicationUpdater setSmsUrl(URI smsUrl)
smsUrl
- URL Twilio will request when receiving an SMSpublic ApplicationUpdater setSmsUrl(String smsUrl)
smsUrl
- URL Twilio will request when receiving an SMSpublic ApplicationUpdater setSmsMethod(HttpMethod smsMethod)
smsMethod
- HTTP method to use with sms_urlpublic ApplicationUpdater setSmsFallbackUrl(URI smsFallbackUrl)
smsFallbackUrl
- Fallback URL if there's an error parsing TwiMLpublic ApplicationUpdater setSmsFallbackUrl(String smsFallbackUrl)
smsFallbackUrl
- Fallback URL if there's an error parsing TwiMLpublic ApplicationUpdater setSmsFallbackMethod(HttpMethod smsFallbackMethod)
smsFallbackMethod
- HTTP method to use with sms_fallback_methodpublic ApplicationUpdater setSmsStatusCallback(URI smsStatusCallback)
smsStatusCallback
- URL Twilio with request with status updatespublic ApplicationUpdater setSmsStatusCallback(String smsStatusCallback)
smsStatusCallback
- URL Twilio with request with status updatespublic ApplicationUpdater setMessageStatusCallback(URI messageStatusCallback)
messageStatusCallback
- URL to make requests to with status updatespublic ApplicationUpdater setMessageStatusCallback(String messageStatusCallback)
messageStatusCallback
- URL to make requests to with status updatespublic Application execute(TwilioRestClient client)
execute
in class Updater<Application>
client
- TwilioRestClient with which to make the requestCopyright © 2011 Twilio, Inc. All Rights Reserved.