public class ApplicationCreator extends Creator<Application>
Constructor and Description |
---|
ApplicationCreator(String accountSid,
String friendlyName)
Construct a new ApplicationCreator.
|
Modifier and Type | Method and Description |
---|---|
Application |
execute(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
|
ApplicationCreator |
setApiVersion(String apiVersion)
Requests to this application will start a new TwiML session with this API
version..
|
ApplicationCreator |
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..
|
ApplicationCreator |
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..
|
ApplicationCreator |
setSmsFallbackMethod(HttpMethod smsFallbackMethod)
The HTTP method Twilio will use when requesting the above URL.
|
ApplicationCreator |
setSmsFallbackUrl(String smsFallbackUrl)
The URL that Twilio will request if an error occurs retrieving or executing
the TwiML from `SmsUrl`..
|
ApplicationCreator |
setSmsFallbackUrl(URI smsFallbackUrl)
The URL that Twilio will request if an error occurs retrieving or executing
the TwiML from `SmsUrl`..
|
ApplicationCreator |
setSmsMethod(HttpMethod smsMethod)
The HTTP method Twilio will use when making requests to the `SmsUrl`.
|
ApplicationCreator |
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..
|
ApplicationCreator |
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..
|
ApplicationCreator |
setSmsUrl(String smsUrl)
The URL Twilio will request when a phone number assigned to this application
receives an incoming SMS message..
|
ApplicationCreator |
setSmsUrl(URI smsUrl)
The URL Twilio will request when a phone number assigned to this application
receives an incoming SMS message..
|
ApplicationCreator |
setStatusCallback(String statusCallback)
The URL that Twilio will request to pass status parameters (such as call
ended) to your application..
|
ApplicationCreator |
setStatusCallback(URI statusCallback)
The URL that Twilio will request to pass status parameters (such as call
ended) to your application..
|
ApplicationCreator |
setStatusCallbackMethod(HttpMethod statusCallbackMethod)
The HTTP method Twilio will use to make requests to the `StatusCallback` URL.
|
ApplicationCreator |
setVoiceCallerIdLookup(Boolean voiceCallerIdLookup)
Look up the caller's caller-ID name from the CNAM database (additional
charges apply).
|
ApplicationCreator |
setVoiceFallbackMethod(HttpMethod voiceFallbackMethod)
The HTTP method Twilio will use when requesting the `VoiceFallbackUrl`.
|
ApplicationCreator |
setVoiceFallbackUrl(String voiceFallbackUrl)
The URL that Twilio will request if an error occurs retrieving or executing
the TwiML requested by `Url`..
|
ApplicationCreator |
setVoiceFallbackUrl(URI voiceFallbackUrl)
The URL that Twilio will request if an error occurs retrieving or executing
the TwiML requested by `Url`..
|
ApplicationCreator |
setVoiceMethod(HttpMethod voiceMethod)
The HTTP method Twilio will use when requesting the above `Url`.
|
ApplicationCreator |
setVoiceUrl(String voiceUrl)
The URL Twilio will request when a phone number assigned to this application
receives a call..
|
ApplicationCreator |
setVoiceUrl(URI voiceUrl)
The URL Twilio will request when a phone number assigned to this application
receives a call..
|
public ApplicationCreator setApiVersion(String apiVersion)
apiVersion
- The API version to usepublic ApplicationCreator setVoiceUrl(URI voiceUrl)
voiceUrl
- URL Twilio will make requests to when relieving a callpublic ApplicationCreator setVoiceUrl(String voiceUrl)
voiceUrl
- URL Twilio will make requests to when relieving a callpublic ApplicationCreator setVoiceMethod(HttpMethod voiceMethod)
voiceMethod
- HTTP method to use with the URLpublic ApplicationCreator setVoiceFallbackUrl(URI voiceFallbackUrl)
voiceFallbackUrl
- Fallback URLpublic ApplicationCreator setVoiceFallbackUrl(String voiceFallbackUrl)
voiceFallbackUrl
- Fallback URLpublic ApplicationCreator setVoiceFallbackMethod(HttpMethod voiceFallbackMethod)
voiceFallbackMethod
- HTTP method to use with the fallback urlpublic ApplicationCreator setStatusCallback(URI statusCallback)
statusCallback
- URL to hit with status updatespublic ApplicationCreator setStatusCallback(String statusCallback)
statusCallback
- URL to hit with status updatespublic ApplicationCreator setStatusCallbackMethod(HttpMethod statusCallbackMethod)
statusCallbackMethod
- HTTP method to use with the status callbackpublic ApplicationCreator setVoiceCallerIdLookup(Boolean voiceCallerIdLookup)
voiceCallerIdLookup
- True or Falsepublic ApplicationCreator setSmsUrl(URI smsUrl)
smsUrl
- URL Twilio will request when receiving an SMSpublic ApplicationCreator setSmsUrl(String smsUrl)
smsUrl
- URL Twilio will request when receiving an SMSpublic ApplicationCreator setSmsMethod(HttpMethod smsMethod)
smsMethod
- HTTP method to use with sms_urlpublic ApplicationCreator setSmsFallbackUrl(URI smsFallbackUrl)
smsFallbackUrl
- Fallback URL if there's an error parsing TwiMLpublic ApplicationCreator setSmsFallbackUrl(String smsFallbackUrl)
smsFallbackUrl
- Fallback URL if there's an error parsing TwiMLpublic ApplicationCreator setSmsFallbackMethod(HttpMethod smsFallbackMethod)
smsFallbackMethod
- HTTP method to use with sms_fallback_methodpublic ApplicationCreator setSmsStatusCallback(URI smsStatusCallback)
smsStatusCallback
- URL Twilio with request with status updatespublic ApplicationCreator setSmsStatusCallback(String smsStatusCallback)
smsStatusCallback
- URL Twilio with request with status updatespublic ApplicationCreator setMessageStatusCallback(URI messageStatusCallback)
messageStatusCallback
- URL to make requests to with status updatespublic ApplicationCreator setMessageStatusCallback(String messageStatusCallback)
messageStatusCallback
- URL to make requests to with status updatespublic Application execute(TwilioRestClient client)
execute
in class Creator<Application>
client
- TwilioRestClient with which to make the requestCopyright © 2011 Twilio, Inc. All Rights Reserved.