File tree Expand file tree Collapse file tree 3 files changed +43
-7
lines changed Expand file tree Collapse file tree 3 files changed +43
-7
lines changed Original file line number Diff line number Diff line change 22source " ../config.sh"
33
44curl -X POST " https://rest.nexmo.com/account/settings" -u " $VONAGE_API_KEY :$VONAGE_API_SECRET " \
5- -d moCallBackUrl=$SMS_CALLBACK_URL
5+ -d " moCallBackUrl=$ACCOUNT_SMS_CALLBACK_URL "
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ source "../../config.sh"
44curl -X POST " https://api.nexmo.com/accounts/$ACCOUNT_ID /secrets" \
55 -H ' Content-Type: application/json' \
66 -u " $VONAGE_API_KEY :$VONAGE_API_SECRET " \
7- -d ' {"secret":"Th1s-I5-my_n3w-s3cr3t "}'
7+ -d ' {"secret":"' $ACCOUNT_SECRET_VALUE ' "}'
88
Original file line number Diff line number Diff line change 11# General
22VONAGE_API_KEY=${VONAGE_API_KEY:- " " }
33VONAGE_API_SECRET=${VONAGE_API_SECRET:- " " }
4-
54VONAGE_APPLICATION_ID=${VONAGE_APPLICATION_ID:- " " }
65VONAGE_PRIVATE_KEY=${VONAGE_PRIVATE_KEY:- " " }
76VONAGE_SIGNATURE_SECRET=${VONAGE_SIGNATURE_SECRET:- " " }
7+ VONAGE_VIRTUAL_NUMBER=${VONAGE_VIRTUAL_NUMBER:- " " }
8+
9+
10+ # Account
11+ ACCOUNT_ID=${ACCOUNT_ID:- " " }
12+ ACCOUNT_SECRET_ID=${ACCOUNT_SECRET_ID:- " " }
13+ ACCOUNT_SECRET_VALUE=${ACCOUNT_SECRET_VALUE:- " Th1s-I5-my_n3w-s3cr3t" }
14+ ACCOUNT_SMS_CALLBACK_URL=${ACCOUNT_SMS_CALLBACK_URL:- " https://example.com/inbound-sms" }
15+
16+
17+ # Applications (includes user endpoints)
18+
19+ # Audit
20+
21+ # Conversation
22+
23+ # Dispatch
24+
25+ # Messages
26+
27+ # Number Insight (v1 & v2)
28+
29+ # Number Verification
30+
31+ # Numbers
32+
33+ # Reports
34+
35+ # Sim Swap
36+
37+ # SMS
38+
39+ # Subaccounts
40+
41+ # VBC
42+
43+ # Verify (v1 & v2)
44+
45+ # Voice
46+
47+ # -----------------------------------
848
949TO_NUMBER=${TO_NUMBER:- " " }
1050RECIPIENT_NUMBER=${RECIPIENT_NUMBER:- " " }
@@ -54,10 +94,6 @@ MESSAGES_SANDBOX_ALLOW_LISTED_FB_RECIPIENT_ID=${MESSAGES_SANDBOX_ALLOW_LISTED_FB
5494MESSAGES_SANDBOX_VIBER_SERVICE_ID=${MESSAGES_SANDBOX_VIBER_SERVICE_ID:- " 16273" }
5595
5696
57- # Account API
58- ACCOUNT_ID=${ACCOUNT_ID:- " " }
59- ACCOUNT_SECRET_ID=${ACCOUNT_SECRET_ID:- " " }
60-
6197# Subaccounts API
6298NEW_SUBACCOUNT_NAME=${NEW_SUBACCOUNT_NAME:- " " }
6399NEW_SUBACCOUNT_SECRET=${NEW_SUBACCOUNT_SECRET:- " " }
You can’t perform that action at this time.
0 commit comments