@RequiresEnterpriseLicense(allowEval=true) @Connector(name="twilio", schemaVersion="2.0", friendlyName="Twilio", minMuleVersion="3.8") public class TwilioConnector extends Object
Constructor and Description |
---|
TwilioConnector() |
Modifier and Type | Method and Description |
---|---|
void |
deleteMedia(String DateCreated,
String AccountSid,
String MessageSid,
String MediaSid)
Delete Media
Deletes Media from the user account.
|
void |
deleteMessage(String AccountSid,
String MessageSid)
Delete Message
Deletes a message record from the user account.
|
AbstractConfig |
getConfig() |
GetMediaResponse |
getMedia(String DateCreated,
String AccountSid,
String MessageSid,
String MediaSid)
Get Media
Retrieves a single media resource using one of several representations.
|
GetMediaListResponse |
getMediaList(String DateCreated,
String AccountSid,
String MessageSid)
Get Media List
Retrieves a list of media associated with the message.
|
GetMessageResponse |
getMessage(String AccountSid,
String MessageSid)
Get Message
Returns a single message specified by the provided Message SID.
|
GetMessageListResponse |
getMessageList(String To,
String From,
String DateSent,
String AccountSid)
Get Message List
Retrieves a list of messages associated with the user account.
|
RestClientConfigProvider<?> |
getRestClientConfigProvider() |
RedactMessageResponse |
redactMessage(String AccountSid,
String MessageSid,
RedactInput entity)
Redact Message
Removes (blacks-out) the body from a previously sent message record.
|
SendMessageResponse |
sendMessage(String AccountSid,
MessageInput entity)
Send Message
Sends a new outgoing message.
|
void |
setConfig(AbstractConfig config) |
public AbstractConfig getConfig()
public void setConfig(AbstractConfig config)
public RestClientConfigProvider<?> getRestClientConfigProvider()
@Processor(friendlyName="Get Message List") public GetMessageListResponse getMessageList(@Optional String To, @Optional String From, @Optional String DateSent, String AccountSid)
To
- Only show messages to this phone number.From
- Only show messages from this phone number or alphanumeric sender ID.DateSent
- Only show messages sent on this date (in GMT format), given as YYYY-MM-DD.
Example: DateSent=2009-07-06.
You can also specify inequality, such as DateSent<=YYYY-MM-DD for messages that were sent on or before midnight on a date, and DateSent>=YYYY-MM-DD for messages sent on or after midnight on a date.AccountSid
- A 34 character string that uniquely identifies the user account.@Processor(friendlyName="Send Message") public SendMessageResponse sendMessage(String AccountSid, @RefOnly@Default(value="#[payload]") MessageInput entity)
AccountSid
- A 34 character string that uniquely identifies the user account.@Processor(friendlyName="Get Message") public GetMessageResponse getMessage(String AccountSid, String MessageSid)
AccountSid
- A 34 character string that uniquely identifies the user account.MessageSid
- Unique ID for any message successfully created by Twilio’s API. It is a 34 character string that starts with “SM…” for SMS and “MM…” for MMS. To find the SID for a specific message via the API, make a GET request to the Messages List Resource. This will return a list of SMS messages associated with your account along with details about each message. It would be the “Sid” property in a message resource.@Processor(friendlyName="Redact Message") public RedactMessageResponse redactMessage(String AccountSid, String MessageSid, @RefOnly@Default(value="#[payload]") RedactInput entity)
AccountSid
- A 34 character string that uniquely identifies the user account.MessageSid
- Unique ID for any message successfully created by Twilio’s API. It is a 34 character string that starts with “SM…” for SMS and “MM…” for MMS. To find the SID for a specific message via the API, make a GET request to the Messages List Resource. This will return a list of SMS messages associated with your account along with details about each message. It would be the “Sid” property in a message resource.@Processor(friendlyName="Delete Message") public void deleteMessage(String AccountSid, String MessageSid)
AccountSid
- A 34 character string that uniquely identifies the user account.MessageSid
- Unique ID for any message successfully created by Twilio’s API. It is a 34 character string that starts with “SM…” for SMS and “MM…” for MMS. To find the SID for a specific message via the API, make a GET request to the Messages List Resource. This will return a list of SMS messages associated with your account along with details about each message. It would be the “Sid” property in a message resource.@Processor(friendlyName="Get Media List") public GetMediaListResponse getMediaList(@Optional String DateCreated, String AccountSid, String MessageSid)
DateCreated
- Only show media created on the given date. Should be formatted as YYYY-MM-DD. You can also specify inequality, such as DateCreated<=YYYY-MM-DD for media generated at or before midnight on a date, and DateCreated>=YYYY-MM-DD for media generated at or after midnight on a date.AccountSid
- A 34 character string that uniquely identifies the user account.MessageSid
- Unique ID for any message successfully created by Twilio’s API. It is a 34 character string that starts with “SM…” for SMS and “MM…” for MMS. To find the SID for a specific message via the API, make a GET request to the Messages List Resource. This will return a list of SMS messages associated with your account along with details about each message. It would be the “Sid” property in a message resource.@Processor(friendlyName="Get Media") public GetMediaResponse getMedia(@Optional String DateCreated, String AccountSid, String MessageSid, String MediaSid)
DateCreated
- Only show media created on the given date. Should be formatted as YYYY-MM-DD. You can also specify inequality, such as DateCreated<=YYYY-MM-DD for media generated at or before midnight on a date, and DateCreated>=YYYY-MM-DD for media generated at or after midnight on a date.AccountSid
- A 34 character string that uniquely identifies the user account.MessageSid
- Unique ID for any message successfully created by Twilio’s API. It is a 34 character string that starts with “SM…” for SMS and “MM…” for MMS. To find the SID for a specific message via the API, make a GET request to the Messages List Resource. This will return a list of SMS messages associated with your account along with details about each message. It would be the “Sid” property in a message resource.MediaSid
- Unique ID for any media successfully created by Twilio’s API. It is a 34 character string that starts with “SM…” for SMS and “MM…” for MMS. To find the SID for a specific message via the API, make a GET request to the Messages List Resource. This will return a list of SMS messages associated with your account along with details about each message. It would be the “Sid” property in a message resource.@Processor(friendlyName="Delete Media") public void deleteMedia(@Optional String DateCreated, String AccountSid, String MessageSid, String MediaSid)
DateCreated
- Only show media created on the given date. Should be formatted as YYYY-MM-DD. You can also specify inequality, such as DateCreated<=YYYY-MM-DD for media generated at or before midnight on a date, and DateCreated>=YYYY-MM-DD for media generated at or after midnight on a date.AccountSid
- A 34 character string that uniquely identifies the user account.MessageSid
- Unique ID for any message successfully created by Twilio’s API. It is a 34 character string that starts with “SM…” for SMS and “MM…” for MMS. To find the SID for a specific message via the API, make a GET request to the Messages List Resource. This will return a list of SMS messages associated with your account along with details about each message. It would be the “Sid” property in a message resource.MediaSid
- Unique ID for any media successfully created by Twilio’s API. It is a 34 character string that starts with “SM…” for SMS and “MM…” for MMS. To find the SID for a specific message via the API, make a GET request to the Messages List Resource. This will return a list of SMS messages associated with your account along with details about each message. It would be the “Sid” property in a message resource.Copyright © 2010–2017. All rights reserved.