# Path: apps/api_bridge.py
# def getarrivals(request, result_count=3):
# def getparking():
# 
# Path: apps/meta.py
# def getStats(phone):


import logging
import webapp2
import twilio
import config
import paywall
from google.appengine.api.taskqueue import Task
from apps import api_bridge
from apps import meta



class SMSRequestHandler(webapp2.RequestHandler):

  def post(self):

      # validate it is in fact coming from twilio
      if config.ACCOUNT_SID != self.request.get('AccountSid'):

# Path: apps/api_bridge.py
# def getarrivals(request, result_count=3):
# def getparking():
# 
# Path: apps/meta.py
# def getStats(phone):


# Path: apps/sms.py
import logging
import webapp2
import twilio
import config
import paywall
from google.appengine.api.taskqueue import Task
from apps import api_bridge
from apps import meta




class SMSRequestHandler(webapp2.RequestHandler):

  def post(self):

      # validate it is in fact coming from twilio
      if config.ACCOUNT_SID != self.request.get('AccountSid'):

        logging.error("Inbound request was NOT VALID.  It might have been spoofed!")