Skip to content

Commit 5d6c6dd

Browse files
Mark Lewinmheap
authored andcommitted
Change Verify block to use RECIPIENT_NUMBER instead of TO_NUMBER
1 parent 8d4723b commit 5d6c6dd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

config.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ NEXMO_APPLICATION_ID=${NEXMO_APPLICATION_ID:-""}
66
NEXMO_PRIVATE_KEY=${NEXMO_PRIVATE_KEY:-""}
77

88
TO_NUMBER=${TO_NUMBER:-""}
9+
RECIPIENT_NUMBER=${RECIPIENT_NUMBER:-""}
910
FROM_NUMBER=${FROM_NUMBER:-""}
1011
NEXMO_NUMBER=${NEXMO_NUMBER:-""}
1112

verify/send-verification-code.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env bash
22
source "../config.sh"
33

4-
curl -X GET "https://api.nexmo.com/verify/json?&api_key=$NEXMO_API_KEY&api_secret=$NEXMO_API_SECRET&number=$TO_NUMBER&brand=AcmeInc"
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"

0 commit comments

Comments
 (0)