A python flask server that responses to text messages
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
messages.py
requirments.txt
server.py

README.md

Responding to Text Messages - Twilio Python Server

Description

A python flask server that responses to text messages.

How it works

The flask server listens to request that are funneled through a secure tunnel - ngrok. It sends responses to depended on what was texted.

Step-by-step guide on how the set up the server, ngrok and connect it to Twilio by chatasweetie on the post:Twilio - 2 Ways of Sending Text Message

Technology Stack

Python, Flask, & ngrok

How to run Script locally

Create a virtual environment

$ virtualenv env
$ source env/bin/activate

Install the dependencies

$ pip install -r requirements.txt

Download ngrok

Run ngrok

$ ./ngrok http 5000

In another terminal, run script

$ python server.py

Note: The messaging functionality requires that you have a Twilio account and connecting ngrok to Twilio.

About the Developer

Jessica Dene Earley
Bio
Linkedin
Blog