Twilio: Difference between revisions

From Starfish ETL
Jump to navigation Jump to search
(Created page with "=Twilio Authentication= The use of the Twilio connector requires a Twilio account. Instead of a username and password, you sign into the API with using your Account SID and a...")
 
No edit summary
Line 1: Line 1:
=Twilio Authentication=
=Twilio Authentication=
The use of the Twilio connector requires a Twilio account. Instead of a username and password, you sign into the API with using your Account SID and a secret Auth Token that is assigned to you. This can be retrieved from the Account Settings section of their website.
The use of the Twilio connector requires a Twilio account. Instead of a username and password, you sign into the API with using your Account SID and a secret Auth Token that is assigned to you. This can be retrieved from the Account Settings section of their website.
=Twilio Origin=
== SMS ==
Returns a list of sent and received SMS/MMS messages.
Use a value of 'true' in the "Return Media?" box to fetch any related media items to each message. This includes things like photos and will return a block of json which you'll have to parse. This option does have an effect on speed.
Can be filtered by "To", "From", and "SentDate"
== Call ==
Returns a list of voice calls.
Can be filtered by "To", "From", "Status", "EndTime", and StartTime
=Twilio Destination=
== SMS ==
Sends an SMS or MMS message.
To: (req) The phone number to deliver the message to.
From: (req) The Twilio phone number you wish to send the message from.
Body: (opt) The body of the message.  Up to 1600 characters.
MediaURLs: (opt) A comma-seperated list of URLs. These URL's should point to the media files (images) that you wish to "attach" to the message. Up to 10 URL's may be included. See [https://www.twilio.com/docs/api/rest/sending-messages REST API: Sending SMS or MMS] for more info.
== Call ==
Initiate a Phone call. Further developement would be needed to respond to phone call events. See [https://www.twilio.com/docs/api/rest/making-calls REST API: Making Calls] for more info.
To: (req) The phone number you wish to call.
From: (req) The Twilio phone number you wish to send the message from.

Revision as of 22:49, 11 November 2015

Twilio Authentication

The use of the Twilio connector requires a Twilio account. Instead of a username and password, you sign into the API with using your Account SID and a secret Auth Token that is assigned to you. This can be retrieved from the Account Settings section of their website.

Twilio Origin

SMS

Returns a list of sent and received SMS/MMS messages. Use a value of 'true' in the "Return Media?" box to fetch any related media items to each message. This includes things like photos and will return a block of json which you'll have to parse. This option does have an effect on speed. Can be filtered by "To", "From", and "SentDate"

Call

Returns a list of voice calls. Can be filtered by "To", "From", "Status", "EndTime", and StartTime


Twilio Destination

SMS

Sends an SMS or MMS message. To: (req) The phone number to deliver the message to. From: (req) The Twilio phone number you wish to send the message from. Body: (opt) The body of the message. Up to 1600 characters. MediaURLs: (opt) A comma-seperated list of URLs. These URL's should point to the media files (images) that you wish to "attach" to the message. Up to 10 URL's may be included. See REST API: Sending SMS or MMS for more info.

Call

Initiate a Phone call. Further developement would be needed to respond to phone call events. See REST API: Making Calls for more info. To: (req) The phone number you wish to call. From: (req) The Twilio phone number you wish to send the message from.