Skip to content

Commit 2709b7b

Browse files
authored
Merge pull request #31 from nexmo-community/tony-message-webhooks
Updated to reflect renaming of webhooks in Dashboard for Messages API.
2 parents 3780df8 + 80cb258 commit 2709b7b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

messages/inbound-message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
app = Flask(__name__)
66

7-
@app.route("/webhooks/inbound-sms", methods=['POST'])
7+
@app.route("/webhooks/inbound-message", methods=['POST'])
88
def inbound_message():
99
data = request.get_json()
1010
pprint(data)

messages/delivery-receipt.py renamed to messages/message-status.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
app = Flask(__name__)
66

7-
@app.route("/webhooks/delivery-receipt", methods=['POST'])
8-
def delivery_receipt():
7+
@app.route("/webhooks/message-status", methods=['POST'])
8+
def message_status():
99
data = request.get_json()
1010
pprint(data)
1111
return "200"

0 commit comments

Comments
 (0)