File tree Expand file tree Collapse file tree 6 files changed +61
-1
lines changed
reports/create-async-report Expand file tree Collapse file tree 6 files changed +61
-1
lines changed 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/v2/reports" \
6+ -H ' Content-Type: application/json; charset=utf-8' \
7+ -u " $NEXMO_API_KEY :$NEXMO_API_SECRET " \
8+ -d $' {
9+ "product": "CONVERSATIONS",
10+ "account_id": "' $ACCOUNT_ID ' "
11+ }'
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ curl -X POST "https://api.nexmo.com/v2/reports" \
66 -H ' Content-Type: application/json; charset=utf-8' \
77 -u " $NEXMO_API_KEY :$NEXMO_API_SECRET " \
88 -d $' {
9- "product": "' $REPORT_PRODUCT ' ",
9+ "product": "MESSAGES ",
1010 "account_id": "' $ACCOUNT_ID ' ",
1111 "direction": "' $REPORT_DIRECTION ' "
1212}'
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/v2/reports" \
6+ -H ' Content-Type: application/json; charset=utf-8' \
7+ -u " $NEXMO_API_KEY :$NEXMO_API_SECRET " \
8+ -d $' {
9+ "product": "NUMBER-INSIGHT",
10+ "account_id": "' $ACCOUNT_ID ' "
11+ }'
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/v2/reports" \
6+ -H ' Content-Type: application/json; charset=utf-8' \
7+ -u " $NEXMO_API_KEY :$NEXMO_API_SECRET " \
8+ -d $' {
9+ "product": "SMS",
10+ "account_id": "' $ACCOUNT_ID ' ",
11+ "direction": "' $REPORT_DIRECTION ' ",
12+ "status": "' $REPORT_STATUS ' ",
13+ "date_start": "' $DATE_START ' ",
14+ "date_end": "' $DATE_END ' "
15+ }'
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/v2/reports" \
6+ -H ' Content-Type: application/json; charset=utf-8' \
7+ -u " $NEXMO_API_KEY :$NEXMO_API_SECRET " \
8+ -d $' {
9+ "product": "VERIFY-API",
10+ "account_id": "' $ACCOUNT_ID ' ",
11+ "include_subaccounts": true
12+ }'
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/v2/reports" \
6+ -H ' Content-Type: application/json; charset=utf-8' \
7+ -u " $NEXMO_API_KEY :$NEXMO_API_SECRET " \
8+ -d $' {
9+ "product": "VOICE-CALL",
10+ "account_id": "' $ACCOUNT_ID ' "
11+ }'
You can’t perform that action at this time.
0 commit comments