Constructor and Description |
---|
MessageCreator(PhoneNumber to,
List<URI> mediaUrl,
PhoneNumber from)
Construct a new MessageCreator.
|
MessageCreator(PhoneNumber to,
List<URI> mediaUrl,
String messagingServiceSid)
Construct a new MessageCreator.
|
MessageCreator(PhoneNumber to,
String body,
PhoneNumber from)
Construct a new MessageCreator.
|
MessageCreator(PhoneNumber to,
String body,
String messagingServiceSid)
Construct a new MessageCreator.
|
MessageCreator(String accountSid,
PhoneNumber to,
List<URI> mediaUrl,
PhoneNumber from)
Construct a new MessageCreator.
|
MessageCreator(String accountSid,
PhoneNumber to,
List<URI> mediaUrl,
String messagingServiceSid)
Construct a new MessageCreator.
|
MessageCreator(String accountSid,
PhoneNumber to,
String body,
PhoneNumber from)
Construct a new MessageCreator.
|
MessageCreator(String accountSid,
PhoneNumber to,
String body,
String messagingServiceSid)
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 |
setMaxPrice(BigDecimal maxPrice)
The max_price.
|
MessageCreator |
setProvideFeedback(Boolean provideFeedback)
The provide_feedback.
|
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(PhoneNumber to, String body, PhoneNumber from)
to
- The phone number to receive the messagebody
- The bodyfrom
- The phone number that initiated the messagepublic MessageCreator(String accountSid, PhoneNumber to, String body, PhoneNumber from)
accountSid
- The account_sidto
- The phone number to receive the messagebody
- The bodyfrom
- The phone number that initiated the messagepublic MessageCreator(PhoneNumber to, String body, String messagingServiceSid)
to
- The phone number to receive the messagebody
- The bodymessagingServiceSid
- The messaging_service_sidpublic MessageCreator(String accountSid, PhoneNumber to, String body, String messagingServiceSid)
accountSid
- The account_sidto
- The phone number to receive the messagebody
- The bodymessagingServiceSid
- The messaging_service_sidpublic MessageCreator(PhoneNumber to, List<URI> mediaUrl, PhoneNumber from)
to
- The phone number to receive the messagemediaUrl
- The media_urlfrom
- The phone number that initiated the messagepublic MessageCreator(String accountSid, PhoneNumber to, List<URI> mediaUrl, PhoneNumber from)
accountSid
- The account_sidto
- The phone number to receive the messagemediaUrl
- The media_urlfrom
- The phone number that initiated the messagepublic MessageCreator(PhoneNumber to, List<URI> mediaUrl, String messagingServiceSid)
to
- The phone number to receive the messagemediaUrl
- The media_urlmessagingServiceSid
- The messaging_service_sidpublic MessageCreator(String accountSid, PhoneNumber to, List<URI> mediaUrl, String messagingServiceSid)
accountSid
- The account_sidto
- The phone number to receive the messagemediaUrl
- The media_urlmessagingServiceSid
- The messaging_service_sidpublic 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 setMaxPrice(BigDecimal maxPrice)
maxPrice
- The max_pricepublic MessageCreator setProvideFeedback(Boolean provideFeedback)
provideFeedback
- The provide_feedbackpublic Message execute(TwilioRestClient client)
Copyright © 2011 Twilio, Inc. All Rights Reserved.