diff --git a/config.py.sample b/config.py.sample index d809c31..76a98d2 100644 --- a/config.py.sample +++ b/config.py.sample @@ -4,3 +4,32 @@ DATABASE_HOST = 'localhost' DATABASE_USER = 'inside' DATABASE_PASS = '' DATABASE_NAME = 'inside' + + + +## Eurobate HTTP PUSH ## +######################## + +# Endpoint for bulk messages +EB_URL = 'http://dio.eurobate.com/push.php' + +# Endpoint for billing messages +EB_PAYURL = 'http://dio.eurobate.com/push2.php' + +# Our endpoint for delivery reports +EB_DLR = 'http://tekstmelding.neuf.no/dlr' + +# Our Eurobate username +EB_USER = '' + +# Our Eurobate password +EB_PASSWORD = '' + +# This shows up as the sender of bulk text messages +EB_SENDER_DNS = 'DNS' + +# This shows up as the sender of billing text messages +EB_SENDER_BILLING = '2090' + +# Set to 1 to simulate message sending, 0 in production +EB_SIMULATE = 1 diff --git a/requirements.txt b/requirements.txt index 42dea51..7a77549 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ Flask==0.10.1 MySQL-python==1.2.5 +requests==2.3.0 \ No newline at end of file diff --git a/tekstmelding.py b/tekstmelding.py index 8f527b6..6891e86 100644 --- a/tekstmelding.py +++ b/tekstmelding.py @@ -187,5 +187,9 @@ def callback(): return jsonify(result) +@app.route('/dlr') +def dlr(): + return '' + if __name__ == '__main__': app.run()