This Choreo retrieves messages that contain the specified search string. More information for this Twilio resource can be found here.
Note that this Choreo has an input called ResponseMode which can be used to simplify the response and just return the message string.
Here's an example of acceptable inputs:
AccountSID: {YOUR TWILIO ACCOUNT SID}
AuthToken: {YOUR TWILIO AUTH_TOKEN}
Filter: Jenny
ResponseMode: simple
The following is a sample of the JSON returned by this Choreo when setting the ResponseMode to "simple":
[
"Hey, let's meet up soon.",
"Looking forward to the show!",
"I just got my new Arduino Yun!!"
]
When setting the ResponseMode to "verbose", the Response will look something like this:
[
{
"sid": "SM60f7f4f9efd4a2e86adf339b7653ggh",
"date_created": "Mon, 23 Sep 2013 05:05:33 +0000",
"date_updated": "Mon, 23 Sep 2013 05:05:33 +0000",
"date_sent": "Mon, 23 Sep 2013 05:05:33 +0000",
"account_sid": "ACacec6e213d691a7e3745e5af1e8bdb85",
"to": "+13474702642",
"from": "+16623077141",
"body": "Hey, let's meet up soon",
"status": "sent",
"direction": "outbound-api",
"price": "-0.00750",
"price_unit": "USD",
"api_version": "2010-04-01",
"uri": "/2010-04-01/Accounts/ACacec6e213d691a7e3745e5af1e8bdb85/SMS/Messages/SM60f7f4f9efd4a2e86adf339b7653ggh.json"
},
{
"sid": "SM60f7f4f9efd4a2e86adf33557344",
"date_created": "Mon, 23 Sep 2013 05:05:33 +0000",
"date_updated": "Mon, 23 Sep 2013 05:05:33 +0000",
"date_sent": "Mon, 23 Sep 2013 05:05:33 +0000",
"account_sid": "ACacec6e213d691a7e3745e5af1e8bdb85",
"to": "+13474702642",
"from": "+16623077141",
"body": "Looking forward to the show!",
"status": "sent",
"direction": "outbound-api",
"price": "-0.00750",
"price_unit": "USD",
"api_version": "2010-04-01",
"uri": "/2010-04-01/Accounts/ACacec6e213d691a7e3745e5af1e8bdb85/SMS/Messages/SM60f7f4f9efd4a2e86adf33557344.json"
},
{
"sid": "SM60f7f4f9efd4a2e86adf339b411115",
"date_created": "Mon, 23 Sep 2013 05:05:33 +0000",
"date_updated": "Mon, 23 Sep 2013 05:05:33 +0000",
"date_sent": "Mon, 23 Sep 2013 05:05:33 +0000",
"account_sid": "ACacec6e213d691a7e3745e5af1e8bdb85",
"to": "+13474702642",
"from": "+16623077141",
"body": "I just got my new Arduino Yun!!",
"status": "sent",
"direction": "outbound-api",
"price": "-0.00750",
"price_unit": "USD",
"api_version": "2010-04-01",
"uri": "/2010-04-01/Accounts/ACacec6e213d691a7e3745e5af1e8bdb85/SMS/Messages/SM60f7f4f9efd4a2e86adf339b411115.json"
}
]