From db38986e64a5e6fa386718cae4544d4bf6d8f0b1 Mon Sep 17 00:00:00 2001 From: Carlos Diaz-Padron Date: Mon, 23 Nov 2015 10:55:53 -0800 Subject: [PATCH] Use modern Twilio Messaging endpoint The `/SMS/Messages` endpoint is the old SMS-only endpoint. `/Messages` can send SMS and MMS, but `/SMS` will be deprecated at some point in the (probably far) future. This makes the script more future-proof. --- smack-my-bitch-up.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smack-my-bitch-up.sh b/smack-my-bitch-up.sh index 68febff..f926e4f 100755 --- a/smack-my-bitch-up.sh +++ b/smack-my-bitch-up.sh @@ -29,7 +29,7 @@ MESSAGE="Late at work. "$RANDOM_REASON # Send a text message RESPONSE=`curl -fSs -u "$TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN" \ -d "From=$MY_NUMBER" -d "To=$HER_NUMBER" -d "Body=$MESSAGE" \ - "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/SMS/Messages"` + "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/Messages"` # Log errors if [ $? -gt 0 ]; then