@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
|
void |
deleteMessage(String AccountSid,
String MessageSid)
Delete Message
|
AbstractConfig |
getConfig() |
GetMediaResponse |
getMedia(String DateCreated,
String AccountSid,
String MessageSid,
String MediaSid)
Get Media
|
GetMediaListResponse |
getMediaList(String DateCreated,
String AccountSid,
String MessageSid)
Get Media List
|
GetMessageResponse |
getMessage(String AccountSid,
String MessageSid)
Get Message
|
GetMessageListResponse |
getMessageList(String To,
String From,
String DateSent,
String AccountSid)
Get Message List
|
RestClientConfigProvider<?> |
getRestClientConfigProvider() |
RedactMessageResponse |
redactMessage(String AccountSid,
String MessageSid,
RedactInput entity)
Redact Message
|
SendMessageResponse |
sendMessage(String AccountSid,
MessageInput entity)
Send 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)
Retrieves a list of messages associated with the user account. The list includes paging information.
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)
Sends a new outgoing message.
AccountSid
- A 34 character string that uniquely identifies the user account.@Processor(friendlyName="Get Message") public GetMessageResponse getMessage(String AccountSid, String MessageSid)
Returns a single message specified by the provided Message SID.
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)
Removes (blacks-out) the body from a previously sent message record. Usually done for security purposes, when a user doesn't want to delete the message from history entirely. Redacting a message is done by posting an empty body to the message resource. NOTE: To redact is to edit. Frequently, a redacted document has simply had personal (or possibly actionable) information deleted or blacked out; as a consequence, redacted is often used to describe documents from which sensitive information has been expunged.
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)
Deletes a message record from the user account. Once the record is deleted, it will no longer appear in the API and Account Portal logs. However, deleting a message does not delete any media associated with the message. That media is still available at its original URI.
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)
Retrieves a list of media associated with the message.
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)
Retrieves a single media resource using one of several representations.
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)
Deletes Media from the user account. Once the media is deleted, you will no longer be billed for this storage.
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–2019. All rights reserved.