module Services::SMS

Public Class Methods

send(account_sid, auth_token, from_phone, to_phone, message) click to toggle source
# File lib/jungle_path/app/services/sms.rb, line 6
def self.send account_sid, auth_token, from_phone, to_phone, message
        client = Twilio::REST::Client.new account_sid, auth_token
        client.account.messages.create(
                to: to_phone,
                from: from_phone,
                body: message
        )
#rescue => e
#     puts "SMS.send: #{e}!"
end