Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If everything went as planned, you should see:

...

Special thanks to Phil Sigler for doing some of this legwork!Troubleshooting

From the bash console, you can test your Twilio settings.

First, collect and set these from your Twilio settings:

Code Block
sid=[ENTER YOUR TWILIO SID]
token=[ENTER YOUR TWILIO TOKEN]
from_phone_number=[ENTER YOUR TWILIO "FROM" PHONE NUMBER]
test_number=[ENTER THE INTERNATIONAL-FORMATTED TEST PHONE NUMBER]

If everything is correct and functional, then this (typed in the same, active bash window) will send a text to the target phone number:

Code Block
curl "https://api.twilio.com/2010-04-01/Accounts/$sid/Messages.json" -X POST --data-urlencode "To=$test_number" --data-urlencode "From=$from_phone_number" --data-urlencode 'Body=Hello from GB' -u $sid:$token