2
0
mirror of https://github.com/narkoz/hacker-scripts synced 2025-08-23 19:07:33 +00:00

Change hangover.sh to use more modern /Messages

This commit is contained in:
Carlos Diaz-Padron 2015-11-23 13:55:17 -08:00
parent 87da07cedd
commit 46c10d6bc8

View File

@ -30,7 +30,7 @@ MESSAGE="Gonna work from home. "$RANDOM_EXCUSE
# Send a text message # Send a text message
RESPONSE=`curl -fSs -u "$TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN" \ RESPONSE=`curl -fSs -u "$TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN" \
-d "From=$MY_NUMBER" -d "To=$NUMBER_OF_BOSS" -d "Body=$MESSAGE" \ -d "From=$MY_NUMBER" -d "To=$NUMBER_OF_BOSS" -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 # Log errors
if [ $? -gt 0 ]; then if [ $? -gt 0 ]; then