import logging

from flask import Flask, request


app = Flask(__name__)
logger = logging.getLogger(__name__)


@app.route("/", methods=['GET', 'POST'])
def hello():
    from_number = request.values.get('From', None)

    logger.debug('Request: '.format(request))
    logger.debug('From: '.format(from_number))
    return "Hello {}".format(from_number or 'world!')

if __name__ == "__main__":
    app.run(debug=True)

@@ -1,12 +1,28 @@
+import datetime%0A
 import loggi
@@ -119,16 +119,29 @@
 name__)%0A
+MYSTORE = %5B%5D%0A
 %0A%0A@app.r
@@ -188,16 +188,81 @@
 ello():%0A
+    logger.debug('Request keys: '.format(request.values.keys()))%0A
     from
@@ -308,131 +308,160 @@
 ne)%0A
-%0A
     
-logger.debug('Request: '.format(request))%0A    logger.debug('From: '.format(from_number))%0A    return %22Hello %7B%7D%22
+timestamp = datetime.datetime.now().strftime('%25Y-%25m-%25d %25H:%25M:%25S')%0A    media_url = request.values.get('MediaUrl')%0A    msg = '%5B%7B%7D%5D %7B%7D sent %7B%7D'
 .format(
 from
@@ -460,31 +460,113 @@
 mat(
-from_number or 'world!'
+timestamp, from_number, media_url or '%3Cnothing%3E')%0A    MYSTORE.append(msg)%0A    return u'%3Cbr%3E'.join(MYSTORE
 )%0A%0Ai

return list of responses for session