How to Text Using Twilio API with Python (Optimized Code)
With a free Twilio account, you only get to text verified numbers.
-
Create a Github account.
-
Star this at the top right!
-
Create an account on Twilio.
-
Verify a Phone Number on Twilio https://www.twilio.com/console/phone-numbers/verified. That you would like to text.
-
Get Twilio Credentials
https://www.twilio.com/console Get Account SID Get Auth Token
-
Put your twilio credentials and twilio phone numbers in send_sms.py
-
Clone this repository on your desktop.
-
Open your terminal and pip install twilio.
-
Open send_sms.py in IDLE and Run it! Or if you want to be cool on your mac...
On Your Mac hit CMD+SPACE and type Terminal. Then type in the following command:
python Desktop/CP-Twilio-Python-Text-App/send_sms.py
Congratulations!
You just sent your first text through your Python Text App that uses the Twilio API.