-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Verify updates, remove key and secret for legacy #142
base: main
Are you sure you want to change the base?
Conversation
subaccounts/transfer-balance.sh
Outdated
@@ -4,4 +4,4 @@ source "../config.sh" | |||
|
|||
curl -X POST -u $VONAGE_API_KEY:$VONAGE_API_SECRET https://api.nexmo.com/accounts/$VONAGE_API_KEY/balance-transfers \ | |||
-H "Content-Type: application/json" \ | |||
-d $'{"from":"'$VONAGE_API_KEY'", "to":"'$SUBACCOUNT_KEY'", "amount": '$AMOUNT'}' | |||
-d $'{"from":"'$VONAGE_API_KEY'", "to":"'$SUBACCOUNT_KEY'", "amount": '$VERIFY_AMOUNT'}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SecondeJK this is a different amount
subaccounts/transfer-credit.sh
Outdated
@@ -4,4 +4,4 @@ source "../config.sh" | |||
|
|||
curl -X POST -u $VONAGE_API_KEY:$VONAGE_API_SECRET https://api.nexmo.com/accounts/$VONAGE_API_KEY/credit-transfers \ | |||
-H "Content-Type: application/json" \ | |||
-d $'{"from":"'$VONAGE_API_KEY'", "to":"'$SUBACCOUNT_KEY'", "amount": '$AMOUNT'}' | |||
-d $'{"from":"'$VONAGE_API_KEY'", "to":"'$SUBACCOUNT_KEY'", "amount": '$VERIFY_AMOUNT'}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SecondeJK this is a different amount
-H "Authorization: Bearer $JWT" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SecondeJK don't think the JWT will be replaced in this string.
config.sh
Outdated
@@ -6,15 +6,6 @@ VONAGE_APPLICATION_ID=${VONAGE_APPLICATION_ID:-""} | |||
VONAGE_PRIVATE_KEY=${VONAGE_PRIVATE_KEY:-""} | |||
VONAGE_SIGNATURE_SECRET=${VONAGE_SIGNATURE_SECRET:-""} | |||
|
|||
TO_NUMBER=${TO_NUMBER:-""} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SecondeJK these vars might be used by others - let's not delete them just yet.
No description provided.