Class: MyOps::SMSProviders::TextLocal
- Inherits:
-
MyOps::SMSProvider
- Object
- MyOps::SMSProvider
- MyOps::SMSProviders::TextLocal
- Defined in:
- lib/my_ops/sms_providers/text_local.rb
Instance Method Summary collapse
Instance Method Details
#send_message(recipient, message) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/my_ops/sms_providers/text_local.rb', line 11 def (recipient, ) response = Nifty::Utils::HTTP.post("https://api.txtlocal.com/send/", :params => { :username => MyOps.config.textlocal.username, :hash => MyOps.config.textlocal.auth_hash, :sender => MyOps.config.textlocal.sender, :message => , :numbers => recipient } ) response[:code] == 200 end |