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 , auth_token, from_phone, to_phone, message
	client = Twilio::REST::Client.new , auth_token
	client..messages.create(
		to: to_phone,
		from: from_phone,
		body: message
	)
#rescue => e
#	puts "SMS.send: #{e}!"
end