Skip to content
This repository was archived by the owner on May 24, 2023. It is now read-only.

Commit 16f3b68

Browse files
authored
Create ni-advanced-async-callback.py
some changes to the Nexmo Client are needed in order for this to work
1 parent eb59a2b commit 16f3b68

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from flask import Flask, request
2+
3+
app = Flask(__name__)
4+
5+
@app.route('/webhooks/number-insight', methods=['GET','POST'])
6+
def callback():
7+
print(request.get_json() or request.args)
8+
return "Insight Retrieved, Check the logs", 200

0 commit comments

Comments
 (0)