public class SmsMessageCreator extends Creator<SmsMessage>
| Constructor and Description |
|---|
SmsMessageCreator(String accountSid,
PhoneNumber to,
PhoneNumber from,
List<URI> mediaUrl)
Construct a new SmsMessageCreator.
|
SmsMessageCreator(String accountSid,
PhoneNumber to,
PhoneNumber from,
String body)
Construct a new SmsMessageCreator.
|
| Modifier and Type | Method and Description |
|---|---|
SmsMessage |
execute(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
|
SmsMessageCreator |
setApplicationSid(String applicationSid)
The application_sid.
|
SmsMessageCreator |
setStatusCallback(String statusCallback)
The status_callback.
|
SmsMessageCreator |
setStatusCallback(URI statusCallback)
The status_callback.
|
public SmsMessageCreator(String accountSid, PhoneNumber to, PhoneNumber from, String body)
accountSid - The account_sidto - The tofrom - The frombody - The bodypublic SmsMessageCreator(String accountSid, PhoneNumber to, PhoneNumber from, List<URI> mediaUrl)
accountSid - The account_sidto - The tofrom - The frommediaUrl - The media_urlpublic SmsMessageCreator setStatusCallback(URI statusCallback)
statusCallback - The status_callbackpublic SmsMessageCreator setStatusCallback(String statusCallback)
statusCallback - The status_callbackpublic SmsMessageCreator setApplicationSid(String applicationSid)
applicationSid - The application_sidpublic SmsMessage execute(TwilioRestClient client)
execute in class Creator<SmsMessage>client - TwilioRestClient with which to make the requestCopyright © 2011 Twilio, Inc. All Rights Reserved.