GithubHelp home page GithubHelp logo

irfanahmadin / twiliosheet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mattmakai/twiliosheet

0.0 1.0 0.0 491 KB

A Python Flask application to take Twilio SMSes and submit them to a Google Form

Python 66.70% Shell 0.02% HTML 33.27%

twiliosheet's Introduction

Receive Twilio SMS messages in a Google Spreadsheet

Use Twilio and Google Spreadsheets to build your own applications to do SMS polling / SMS voting, keyword marketing data collection, expense tracking, time tracking, and more.

No programming experience required.

Instructions:

(looking for a tl;dr? See below)

An example spreadsheet

Get Started

  1. Create a Google Spreadsheet:

    Create > Spreadsheet

  2. Name the spreadsheet "TwilioSheet" (or any name of your choosing)

  3. Add "SmsSid", "To", "From", and "Body" to the first line in your new spreadsheet (other parameters are avaiable as well):

    What the Google Spreadsheet should look like after this step

  4. Click on the "Tools" menu, then click "Create a form":

    Tools > Create a form

  5. A window will open.

  6. If you see an option that reads "Require [Company Name] sign-in to view this form.", uncheck the box for that option.

  7. Type "Testing" in the box that says "You can include any text or info that will help people fill this out."

  8. Click "Save"

  9. Click on the URL at the bottom of the window.

    Enter "testing" in the description box, click the "Save" button, click on the URL at the bottom of the window

  10. Another window will open. Copy the URL from the location bar of that window:

    Copy the URL from the window with the Google Form you just created

  11. Open TwilioSheet in a new window.

  12. Paste that URL you copied in step 9 into the box on TwilioSheet, then click the "Submit" button.

  13. You should get a response from the site saying "It worked!"

  14. Copy that URL.

Open another window, in that new window:

  1. Log in to your Twilio account.

  2. Go to the "Numbers" section of your Twilio account (or click here)

  3. Click on the number you want to set up to send SMS data to your Google Spreadsheet.

  4. Paste the URL you copied in step 13 (above) into the "SMS Request URL" box for the Twilio number you are configuring.

  5. Make sure that the dropdown to the right of the "SMS Request URL" box is set to "POST".

  6. Click the "Save Changes" button.

    Example of a Twilio number being configured

  7. Send a text message that says "test" to the number you just set up.

In your Google Spreadsheet:

  1. Any text message you send to your Twilio number should show up in the Google Spreadsheet you set up after a delay of about 5-10 seconds.
  2. Start writing formulas to process the incomming text messages.

tl;dr:

  1. Make a Google Form (http://support.google.com/docs/bin/answer.py?hl=en&answer=87809)
  2. Add items to your form where the "Question Title" is a parameter name for a TwiML SMS Request (http://www.twilio.com/docs/api/twiml/sms/twilio_request) For example: To, From, Body
  3. Publish your form.
  4. At the bottom of the "Edit form" window, look for the text "You can view the published form here".
  5. Copy the URL in the step above. Paste it into the box on TwilioSheet.
  6. TwilioSheet will make a new URL for you, use that URL as the "SMS Request URL" for one of your Twilio numbers.

Notes:

You can run this code yourself if you like. Here are tips on how to do that:

To deploy to Heroku, you'll need to set up virtualenv, like so:

$ virtualenv venv --distribute
$ source venv/bin/activate
$ pip install -r requirements

After setting up virtualenv, this is how you deploy to Heroku

$ heroku create
$ git push heroku master

See also: https://devcenter.heroku.com/articles/python/

twiliosheet's People

Contributors

jpf avatar

Watchers

Irfan Ahmad avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.