Skip to content

Instantly share code, notes, and snippets.

@aodj
Last active November 6, 2015 15:59
Show Gist options
  • Save aodj/58535c4c152b6073eaf5 to your computer and use it in GitHub Desktop.
Save aodj/58535c4c152b6073eaf5 to your computer and use it in GitHub Desktop.
Sending Twilio SMS alerts from Bosun
notification sms {
post = https://{AccountSid}:{Authtoken}@api.twilio.com/2010-04-01/Accounts/{AccountSid}/Messages.json
body = Body={{.}}&To={ToPhoneNumber}&From={FromPhoneNumber}
}
@aodj
Copy link
Author

aodj commented Nov 6, 2015

Swap out AccountSid, AuthToken, ToPhoneNumber and FromPhoneNumber for your credentials/intended recipients. You need to ensure that if the ToPhoneNumber and FromPhoneNumber have + in them, they are urlencoded (ie: as %2B)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment