Create Twilio Account

https://www.twilio.com/docs/messaging/guides/how-to-use-your-free-trial-account

Example Code

TWILIO_ACCOUNT_SID="AC2577688bea76dc43fd3abbbc817ab175"
TWILIO_AUTH_TOKEN="b43e41608749480d8af7df2449e7cc04"
TO_NUMBER="+6289676086001"
FROM_NUMBER="+16204009504"
MESSAGE_BODY="hello"

curl -X POST "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/Messages.json" \
  --data-urlencode "To=$TO_NUMBER" \
  --data-urlencode "From=$FROM_NUMBER" \
  --data-urlencode "Body=$MESSAGE_BODY" \
  -u "$TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN"

Last updated