Skip to content

Commit b77d925

Browse files
committed
Make the workflow configurable but with default, remove comments in example
1 parent deda617 commit b77d925

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ REPORT=${REPORT_URL:-""}
6868
# Verify
6969
REQUEST_ID=${REQUEST_ID:-""}
7070
CODE=${CODE:=""}
71+
WORKFLOW_ID=${WORKFLOW_ID:-"1"}
7172

7273
# Vonage Business Cloud
7374
VBC_CLIENT_ID=${VBC_CLIENT_ID:-""}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env bash
22
source "../config.sh"
33

4-
# Try workflow_id 4 for SMS followed by SMS
5-
curl -X GET "https://api.nexmo.com/verify/json?&api_key=$NEXMO_API_KEY&api_secret=$NEXMO_API_SECRET&number=$RECIPIENT_NUMBER&brand=AcmeInc&workflow_id=4"
4+
curl -X GET "https://api.nexmo.com/verify/json?&api_key=$NEXMO_API_KEY&api_secret=$NEXMO_API_SECRET&number=$RECIPIENT_NUMBER&brand=AcmeInc&workflow_id=$WORKFLOW_ID"

0 commit comments

Comments
 (0)