def send_sms
account = Twilio::RestAccount.new(TWILIO_ACCOUNT_ID, TWILIO_ACCOUNT_TOKEN)
recipients.each do |r|
opts = {
:To => r.phone_number,
:From => FROM_NUMBER,
:Body => self.message
}
resp = account.request("/#{API_VERSION}/Accounts/#{TWILIO_ACCOUNT_ID}/SMS/Messages",
'POST', opts)
end
end
> --
> You received this message because you are subscribed to the Google Groups "sinatrarb" group.
> To post to this group, send email to sina...@googlegroups.com.
> To unsubscribe from this group, send email to sinatrarb+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/sinatrarb?hl=en.
>