Make Calls and Send Text Messages To Your Phone
Notes: In order to use this script, there are a few things you need to do. First, Sign Up for a Twilio Account. Once you do so, you should have a phone number that you can use to play around with as well as an Account SID and an Auth Token. Twilio might not be available in your country yet but hopefully they will be there soon. Make sure you are using the full phone numbers (including counry codes) when making your requests. If you are just using the free version, there may be usage limits but I’m not sure.
The code is set up so that it can be copied into any script where you need to send notifications. Once you’ve copied the Twilio object into your script, whenever you want the notification to be sent, you should add the following code