Skip to content

Commit db38986

Browse files
committed
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.
1 parent 4e5c853 commit db38986

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

smack-my-bitch-up.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ MESSAGE="Late at work. "$RANDOM_REASON
2929
# Send a text message
3030
RESPONSE=`curl -fSs -u "$TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN" \
3131
-d "From=$MY_NUMBER" -d "To=$HER_NUMBER" -d "Body=$MESSAGE" \
32-
"https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/SMS/Messages"`
32+
"https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/Messages"`
3333

3434
# Log errors
3535
if [ $? -gt 0 ]; then

0 commit comments

Comments
 (0)