Skip to content

Commit aa029b9

Browse files
author
Tony Bedford
committed
Updated based on Mark's feedback.
1 parent 154b9bc commit aa029b9

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ ENV/
8989
.ropeproject
9090

9191
# nexmo key files
92-
private.key
9392
*.key
9493

9594
.DS_Store
95+
settings.json

voice/record-a-call-with-split-audio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def answer_call():
3434
def recordings():
3535
data = request.get_json()
3636
pprint(data)
37-
return ("200")
37+
return "Webhook received"
3838

3939
if __name__ == '__main__':
4040
app.run(port=3000)

voice/record-a-call.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def answer_call():
3333
def recordings():
3434
data = request.get_json()
3535
pprint(data)
36-
return ("200")
36+
return "webhook received"
3737

3838
if __name__ == '__main__':
3939
app.run(port=3000)

voice/record-a-conversation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def answer_call():
2222
def recordings():
2323
data = request.get_json()
2424
pprint(data)
25-
return ("200")
25+
return "Webhook received"
2626

2727
if __name__ == '__main__':
2828
app.run(port=3000)

voice/retrieve-info-for-all-calls.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
DATE_END = NOW.replace(microsecond=0).isoformat()+"Z"
1313
DATE_START = (NOW - timedelta(hours=24, minutes=00)).replace(microsecond=0).isoformat()+"Z"
1414

15-
params = {"date_start": DATE_START, "date_end": DATE_END}
16-
response = client.get_calls(params)
15+
response = client.get_calls(date_start=DATE_START, date_end=DATE_END)
1716
calls = response['_embedded']['calls']
1817
for call in calls:
1918
pprint(call)

0 commit comments

Comments
 (0)