Module: Services::SMS
- Defined in:
- lib/jungle_path/app/services/sms.rb
Class Method Summary collapse
Class Method Details
.send(account_sid, auth_token, from_phone, to_phone, message) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/jungle_path/app/services/sms.rb', line 6 def self.send account_sid, auth_token, from_phone, to_phone, client = Twilio::REST::Client.new account_sid, auth_token client.account..create( to: to_phone, from: from_phone, body: ) #rescue => e # puts "SMS.send: #{e}!" end |