Sending an SMS notification to the end user using the Twilio service
In most of the previous recipes of this chapter, we have worked with SendGrid triggers to send emails in different scenarios. In this recipe, you will learn how to send notifications via text messages, using one of the leading cloud communication platforms, named Twilio.
Note
Twilio is a cloud communication platform-as-a-service platform. Twilio allows software developers to programmatically make and receive phone calls, send and receive text messages, and perform other communication functions using its web service APIs. Learn more about Twilio at https://www.twilio.com/.
Getting ready
In order to use the Twilio SMS output (objsmsmessage
) binding, you need to do the following:
- Create a trial Twilio account at https://www.twilio.com/try-twilio.
- Following the successful creation of the account, grab the ACCOUNT SID and AUTH TOKEN from the Twilio Dashboard and save it for future reference, as...