Skip to content

Commit 0ff00c4

Browse files
author
Tony Bedford
committed
WIP
1 parent 7ec6b3e commit 0ff00c4

File tree

6 files changed

+61
-1
lines changed

6 files changed

+61
-1
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
}'

reports/create-asynch-report.sh renamed to reports/create-async-report/messages/create-async-report.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}'
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
}'
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
}'
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
}'
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
}'

0 commit comments

Comments
 (0)