summaryrefslogtreecommitdiff
path: root/src/testing/sms_authentication.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/sms_authentication.sh')
-rwxr-xr-xsrc/testing/sms_authentication.sh10
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"