Skip to content

Commit fd9b28a

Browse files
committed
Fixes based on feedback.
1 parent 4efe7df commit fd9b28a

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

config.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ REPORT_STATUS=${REPORT_STATUS:-""}
9090
ID=${ID:-""}
9191
REQUEST_ID=${REQUEST_ID:-""}
9292
REPORT_ID=${REPORT_ID:-""}
93+
TYPE=${TYPE:-""}
9394

9495
# Verify
9596
REQUEST_ID=${REQUEST_ID:-""}

reports/cancel-report.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
source "../config.sh"
44

55
curl -X DELETE -u "$NEXMO_API_KEY:$NEXMO_API_SECRET" \
6-
"https://api.nexmo.com/v2/reports/$REQUEST_ID
6+
"https://api.nexmo.com/v2/reports/$REQUEST_ID"

reports/conversations/create-async-report.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ curl -X POST "https://api.nexmo.com/v2/reports" \
88
-d $'{
99
"product": "CONVERSATIONS",
1010
"account_id": "'$ACCOUNT_ID'",
11-
"type": "ip-voice"
11+
"type": "'$TYPE'"
1212
}'

reports/conversations/load-records-sync.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
source "../config.sh"
44

55
curl -u "$NEXMO_API_KEY:$NEXMO_API_SECRET" \
6-
"https://api.nexmo.com/v2/reports/records?account_id=$ACCOUNT_ID&product=CONVERSATIONS&type=$REPORT_TYPE&date_start=$DATE_START&date_end=$DATE_END"
6+
"https://api.nexmo.com/v2/reports/records?account_id=$ACCOUNT_ID&product=CONVERSATIONS&type=$TYPE&date_start=$DATE_START&date_end=$DATE_END"

reports/get-report-status.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
source "../config.sh"
44

55
curl -u "$NEXMO_API_KEY:$NEXMO_API_SECRET" \
6-
"https://api.nexmo.com/v2/reports/$REQUEST_ID?account_id=$ACCOUNT_ID"
6+
"https://api.nexmo.com/v2/reports/$REQUEST_ID"

0 commit comments

Comments
 (0)