File tree Expand file tree Collapse file tree 4 files changed +22
-0
lines changed Expand file tree Collapse file tree 4 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,11 @@ WEBHOOK_URL=${WEBHOOK_URL:-""}
4040US_SHORT_CODE=${US_SHORT_CODE:- " " }
4141IMG_URL=${IMG_URL:- " " }
4242
43+ # Reporting
44+ REPORT_PRODUCT=${REPORT_PRODUCT:- " " }
45+ REPORT_ID=${REPORT_ID:- " " }
46+ REPORT=${REPORT_URL:- " " }
47+
4348# If we have a local config, override using that
4449CONFIG_DIR=$( dirname " ${BASH_SOURCE[0]} " )
4550if [ -f " $CONFIG_DIR /config.local.sh" ]; then
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ source " ../config.sh"
4+
5+ curl " https://api.nexmo.com/v1/reports/$REPORT_ID ?api_key=$NEXMO_API_KEY &api_secret=$NEXMO_API_SECRET "
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ source " ../config.sh"
4+
5+ curl -X " POST" " https://api.nexmo.com/v1/reports?api_key=$NEXMO_API_KEY &api_secret=$NEXMO_API_SECRET " \
6+ -H " Content-Type: application/json" \
7+ -d ' {"product": "' $REPORT_PRODUCT ' "}'
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ source " ../config.sh"
4+
5+ curl -o ./report.zip " $REPORT_URL ?api_key=$NEXMO_API_KEY &api_secret=$NEXMO_API_SECRET "
You can’t perform that action at this time.
0 commit comments