omarhuanca / sms-example-twilio

Custom simple send SMS from Twilio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sending a Text Message - Twilio

Description

A script that ask for a phone number and sends a text message to that number

How it works

Using Twilio's python wrapper and API, the script ask the user for their phone number and send a text message to that number.

Step-by-step guide on how the script works and connecting it to Twilio by chatasweetie on the post:Twilio - 2 Ways of Sending Text Message

Technology Stack

Python, Twilio

Screenshot

Script being run

How to run Script locally

Create a virtual environment

> python3 -m venv venv
> virtualenv venv
> source venv/bin/activate

Install the dependencies

> python3
> pip install twilio
> pip install phonenumbers

Run script

> python twilio_process.py

Note: The messaging functionality requires that you have a Twilio account id, authorization token and phone number set as local environment variables:

About the Developer

Jessica Dene Earley
Bio
Linkedin
Blog

Custom source code belongs BO

About

Custom simple send SMS from Twilio


Languages

Language:Python 100.0%