summaryrefslogtreecommitdiff
path: root/src/testing/sms_authentication.sh
blob: 0c2c851a45f041be7a5c033e02c91986c84202cf (plain)
1
2
3
4
5
6
7
8
9
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"