7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'lib/arolitec_sms/client.rb', line 7
def send(sender, receiver, content)
raise ArolitecSms::ArolitecSmsConfigurationError unless api_configured?
message = {}
message[:charset] = ArolitecSms.configuration.charset.nil?
message[:flash] = ArolitecSms.configuration.flash.nil? ? "" : ArolitecSms.configuration.flash
message[:climsgid] = Time.now.strftime("%Y%m%d%H%M%S")
message[:numericsender] = ""
message[:sender] = sender
message[:receiver] = receiver
message[:content] = content
puts "MESSAGE: #{message}"
send_sms(message)
end
|