diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-07-30 10:38:27 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-07-30 10:38:27 +0200 |
commit | 7e669bcf6b6336ec429da949bcb4aa456971dba2 (patch) | |
tree | d19912f950d1cac1c38b857b7d5bdaba2289544e /src/testing/sms_authentication.sh | |
download | anastasis-7e669bcf6b6336ec429da949bcb4aa456971dba2.tar.gz anastasis-7e669bcf6b6336ec429da949bcb4aa456971dba2.tar.bz2 anastasis-7e669bcf6b6336ec429da949bcb4aa456971dba2.zip |
folding history in preparation of GNU Anastasis v0.0.0 release
Diffstat (limited to 'src/testing/sms_authentication.sh')
-rwxr-xr-x | src/testing/sms_authentication.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testing/sms_authentication.sh b/src/testing/sms_authentication.sh new file mode 100755 index 0000000..0c2c851 --- /dev/null +++ b/src/testing/sms_authentication.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +# Note: to use this script, you must set +# ANASTASIS_SMS_API_KEY and +# ANASTASIS_SMS_API_SECRET environment variables. +curl -X "POST" "https://rest.nexmo.com/sms/json" \ + -d "from=Vonage APIs" \ + -d "text=$1" \ + -d "to=$2" \ + -d "api_key=$ANASTASIS_SMS_API_KEY" \ + -d "api_secret=$ANASTASIS_SMS_API_SECRET" |