File tree Expand file tree Collapse file tree 5 files changed +5
-4
lines changed Expand file tree Collapse file tree 5 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ REPORT_STATUS=${REPORT_STATUS:-""}
9090ID=${ID:- " " }
9191REQUEST_ID=${REQUEST_ID:- " " }
9292REPORT_ID=${REPORT_ID:- " " }
93+ TYPE=${TYPE:- " " }
9394
9495# Verify
9596REQUEST_ID=${REQUEST_ID:- " " }
Original file line number Diff line number Diff line change 33source " ../config.sh"
44
55curl -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 "
Original file line number Diff line number Diff 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}'
Original file line number Diff line number Diff line change 33source " ../config.sh"
44
55curl -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 "
Original file line number Diff line number Diff line change 33source " ../config.sh"
44
55curl -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 "
You can’t perform that action at this time.
0 commit comments