Constructor and Description |
---|
ShortCodeUpdater(String accountSid,
String sid)
Construct a new ShortCodeUpdater.
|
Modifier and Type | Method and Description |
---|---|
ShortCode |
execute(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
ShortCodeUpdater |
setApiVersion(String apiVersion)
SMSs to this short code will start a new TwiML session with this API
version..
|
ShortCodeUpdater |
setFriendlyName(String friendlyName)
A human readable descriptive text for this resource, up to 64 characters
long.
|
ShortCodeUpdater |
setSmsFallbackMethod(HttpMethod smsFallbackMethod)
The HTTP method Twilio will use when requesting the above URL.
|
ShortCodeUpdater |
setSmsFallbackUrl(String smsFallbackUrl)
The URL that Twilio will request if an error occurs retrieving or executing
the TwiML from `SmsUrl`..
|
ShortCodeUpdater |
setSmsFallbackUrl(URI smsFallbackUrl)
The URL that Twilio will request if an error occurs retrieving or executing
the TwiML from `SmsUrl`..
|
ShortCodeUpdater |
setSmsMethod(HttpMethod smsMethod)
The HTTP method Twilio will use when making requests to the `SmsUrl`.
|
ShortCodeUpdater |
setSmsUrl(String smsUrl)
The URL Twilio will request when receiving an incoming SMS message to this
short code..
|
ShortCodeUpdater |
setSmsUrl(URI smsUrl)
The URL Twilio will request when receiving an incoming SMS message to this
short code..
|
public ShortCodeUpdater setFriendlyName(String friendlyName)
friendlyName
- A human readable description of this resourcepublic ShortCodeUpdater setApiVersion(String apiVersion)
apiVersion
- The API version to usepublic ShortCodeUpdater setSmsUrl(URI smsUrl)
smsUrl
- URL Twilio will request when receiving an SMSpublic ShortCodeUpdater setSmsUrl(String smsUrl)
smsUrl
- URL Twilio will request when receiving an SMSpublic ShortCodeUpdater setSmsMethod(HttpMethod smsMethod)
smsMethod
- HTTP method to use when requesting the sms urlpublic ShortCodeUpdater setSmsFallbackUrl(URI smsFallbackUrl)
smsFallbackUrl
- URL Twilio will request if an error occurs in
executing TwiMLpublic ShortCodeUpdater setSmsFallbackUrl(String smsFallbackUrl)
smsFallbackUrl
- URL Twilio will request if an error occurs in
executing TwiMLpublic ShortCodeUpdater setSmsFallbackMethod(HttpMethod smsFallbackMethod)
smsFallbackMethod
- HTTP method Twilio will use with sms fallback urlpublic ShortCode execute(TwilioRestClient client)
Copyright © 2011 Twilio, Inc. All Rights Reserved.