An open API service indexing awesome lists of open source software.

https://github.com/marks/verify-vote

Mock up to verify a voter's ballot choice via SMS
https://github.com/marks/verify-vote

Last synced: 9 months ago
JSON representation

Mock up to verify a voter's ballot choice via SMS

Awesome Lists containing this project

README

          

verify-vote
===========
Mock up to verify a voter's ballot choice via SMS

by [Mark Silverberg](http://twitter.com/skram) of [Social Health Insights](http://socialhealthinsights.com/)
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](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](http://verify-vote.socialhealthinsights.com/ballots) show all ballots in JSON format
* [/ballot/321](http://verify-vote.socialhealthinsights.com/ballot/321) show the details for a specific ballot in JSON format

Steps to recreate
-----------------

1. You will need to have [the Heroku Toolbelt](https://toolbelt.herokuapp.com/) installed first.

2. Drop into your command line and run the following commands:
* `git clone http://github.com/marks/verify-vote.git --depth 1`
* `cd verify-vote`

3. Edit the `config.yml.exmaple` to use your own API username and password and rename the file to `config.yml`

4. Back at the command line, issue:
* `heroku create`
* `git push heroku master`

5. Log in or sign up for [Tropo](http://www.tropo.com/) and create a new WebAPI application.
For the App URL, enter in your Heroku app's URL and append `/index.json` to the end of it.

6. 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`