In this article, we will see how to use the Twilio API to send SMS using Python. This will be a very quick and easy guide to this very interesting task.
First, we need to create an account an account on the Twilio official website, to get id and token . This is a paid service, but you will be credited with an initial amount first.
Steps to create a Twilio account:
Go to the Twilio registration page . Complete the registration by filling in the required details.
From the console (dashboard panel) copy
ACCOUNT SID and
AUTH TOKEN .
Install the Twilio library using pip.
pip install twilio
Below is the Python implementation:
In the above code, just replace
auth_token values, which you get from Twilio. Also, replace the body of the message you want to send and bingo!
Extract emails from your account and forward the subject and mailing address of the recipient as text message to your mobile phone. You can even filter it by limiting it to forwarding only important emails.
In the summer of 2008, after three decades of building software in corporate data centers, I walked away from corporate America to take a stab at building a technology company from the ground up based...
We are witnessing a movement that will completely transform any part of business and society. The word we have given to this move- ment is Big Data and it will change everything, from the way banks an...
Learn how data literacy is changing the world and giving you a better understanding of life's biggest problems in this "Important and Comprehensive" Guide to Statistical Thinking (New York). The bi...
Introduction to Machine Learning with Python: A Guide for Data Scientists 1st Edition. Machine learning has become an integral part of many commercial applications and research projects, but this f...