WIP: adding delivery receipt endpoint for mmg

This commit is contained in:
Rebecca Law
2016-04-04 15:02:21 +01:00
parent 69697388d7
commit 2ba12da77d
5 changed files with 53 additions and 6 deletions

View File

@@ -143,6 +143,13 @@ def is_not_a_notification(source):
return False
@notifications.route('/notifications/sms/mmg', methods=['POST'])
def process_mmg_response():
print('here')
current_app.logger.info('MMG client callback json{}'.format(request.json))
current_app.logger.info('MMG client callback form{}'.format(request.form))
@notifications.route('/notifications/sms/firetext', methods=['POST'])
def process_firetext_response():
if 'status' not in request.form: