verify-vote
Mock up to verify a voter's ballot choice via SMS
by Mark Silverberg of Social Health Insights for Danny Thiemann of the Indiana University Maurer School of Law
Data Source
Publicly accessible Google spreadsheet at https://docs.google.com/a/gwmail.gwu.edu/spreadsheet/ccc?key=0AvEbeLXW2uw0dHFmbUU1cHZIWVlzZk1PT2hDNnZWX0E#gid=0
Demonstration
- You can interact with this app by calling/texting one of the endpoints below.
| Service | Number/Name | Voice/Text |
|---|---|---|
| Call/SMS | (260) 207-4235 | Both |
| Skype | +990009369990065278 | Voice only |
| SIP | sip:9990065278@sip.tropo.com | Voice only |
| iNum | +883510001392933 | Voice only |
| Jabber | verifyvote@tropo.im | Text only |
- You can also see the data source (details above) by visting one of the following web endpoints in your browser
- /ballots show all ballots in JSON format
- /ballot/321 show the details for a specific ballot in JSON format
Steps to recreate
-
You will need to have the Heroku Toolbelt installed first.
-
Drop into your command line and run the following commands:
git clone http://github.com/marks/verify-vote.git --depth 1cd verify-vote
-
Edit the
config.yml.exmapleto use your own API username and password and rename the file toconfig.yml -
Back at the command line, issue:
heroku creategit push heroku master
-
Log in or sign up for Tropo and create a new WebAPI application. For the App URL, enter in your Heroku app's URL and append
/index.jsonto the end of it. -
That's it! Call in, use, and tinker with your app!
Dev Notes
- Create tunnel for local development (local sinatra port = 4567), more information available at https://www.tropo.com/docs/webapi/using_tunnlr_reverse_ssh.htm
ssh -nNt -g -R :12748:0.0.0.0:4567 tunnlr3492@ssh1.tunnlr.com- Set tropo endpoint to
http://web1.tunnlr.com:12748/index.json