Constructor and Description |
---|
MessageCreator(String accountSid,
PhoneNumber to,
PhoneNumber from,
List<URI> mediaUrl)
Construct a new MessageCreator.
|
MessageCreator(String accountSid,
PhoneNumber to,
PhoneNumber from,
String body)
Construct a new MessageCreator.
|
Modifier and Type | Method and Description |
---|---|
Message |
execute(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
|
MessageCreator |
setApplicationSid(String applicationSid)
Twilio the POST MessageSid as well as MessageStatus to the URL in the
MessageStatusCallback property of this Application.
|
MessageCreator |
setProvideFeeback(Boolean provideFeeback)
The provide_feeback.
|
MessageCreator |
setStatusCallback(String statusCallback)
The URL that Twilio will POST to each time your message status changes.
|
MessageCreator |
setStatusCallback(URI statusCallback)
The URL that Twilio will POST to each time your message status changes.
|
public MessageCreator(String accountSid, PhoneNumber to, PhoneNumber from, String body)
accountSid
- The account_sidto
- The phone number to receive the messagefrom
- The phone number that initiated the messagebody
- The bodypublic MessageCreator(String accountSid, PhoneNumber to, PhoneNumber from, List<URI> mediaUrl)
accountSid
- The account_sidto
- The phone number to receive the messagefrom
- The phone number that initiated the messagemediaUrl
- The media_urlpublic MessageCreator setStatusCallback(URI statusCallback)
statusCallback
- URL Twilio will request when the status changespublic MessageCreator setStatusCallback(String statusCallback)
statusCallback
- URL Twilio will request when the status changespublic MessageCreator setApplicationSid(String applicationSid)
applicationSid
- The application to use for callbackspublic MessageCreator setProvideFeeback(Boolean provideFeeback)
provideFeeback
- The provide_feebackpublic Message execute(TwilioRestClient client)
Copyright © 2011 Twilio, Inc. All Rights Reserved.