Bosun Twilio的短信通知

示例

换出AccountSid,AuthToken,ToPhoneNumber并FromPhoneNumber为您的凭据/预期的收件人。您需要确保如果在ToPhoneNumber和中FromPhoneNumber有+ ,则对它们进行urlencode编码(即:作为%2B)

notification sms {
    post = https://{AccountSid}:{Authtoken}@api.twilio.com/2010-04-01/Accounts/{AccountSid}/Messages.json
    body = Body={{.}}&To={ToPhoneNumber}&From={FromPhoneNumber}
}

从要点: https : //gist.github.com/aodj/58535c4c152b6073eaf5