使用 Twilio 的 SMS 通知

AccountSidAuthTokenToPhoneNumberFromPhoneNumber 換成你的憑據/目標收件人。你需要確保如果 ToPhoneNumberFromPhoneNumber 中有+,那麼它們是 urlencoded(即:as%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