Skip to content

Instantly share code, notes, and snippets.

@LAMike310
Created December 12, 2016 14:33
Show Gist options
  • Save LAMike310/095cf05b600df41e51d34c5edff7bc40 to your computer and use it in GitHub Desktop.
Save LAMike310/095cf05b600df41e51d34c5edff7bc40 to your computer and use it in GitHub Desktop.
import flask
from two1.wallet import Wallet
from two1.bitserv.flask import Payment
import requests
import json
from sys import argv
app = flask.Flask(__name__)
payment = Payment(app, Wallet())
@app.route('/start')
def getStartAddress():
return "What address are you at now? (Please include street address and zip code): "
@app.route('/getEndAddress')
def getEndAddress():
return "What address do you want to go to? (Please include street address and zip code): "
if __name__ == "__main__":
app.run(host="::", port=5000)
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment