Twilio

Twilio fournisseur (payant) d'envoi et de réception de SMS/MMS

=API=

HTTP

 * 1) !/bin/bash

PHONE_NUMBER=$1 SHORT_MESSAGE=$2

ACCOUNT_SID="ACXXXXXXXXXXXXXXXXXXXXXXXXX" AUTH_TOKEN="22XXXXXXXXXXXXXXXXXXXXXXXXX" CALLER_NUMBER="+3361234567890"

echo "Sending SMS ..."

curl -X POST "https://api.twilio.com/2010-04-01/Accounts/$ACCOUNT_SID/Messages.json" \ --data-urlencode "To=$PHONE_NUMBER" \ --data-urlencode "From=$CALLER_NUMBER" \ --data-urlencode "Body=$SHORT_MESSAGE" \ -u "$ACCOUNT_SID:$AUTH_TOKEN"

echo "SMS sent"
 * 1) TODO test the returned code