Class: Smartcall::API
- Inherits:
-
Object
- Object
- Smartcall::API
- Defined in:
- lib/smartcall.rb
Instance Method Summary collapse
-
#initialize(username, password, campaign_id, reference) ⇒ API
constructor
A new instance of API.
- #send_binary_message(msisdn, header, part, options = {}) ⇒ Object
- #send_message(msisdn, message_body, options = {}) ⇒ Object
- #send_wap_link(msisdn, href, message, options = {}) ⇒ Object
Constructor Details
#initialize(username, password, campaign_id, reference) ⇒ API
Returns a new instance of API.
15 16 17 |
# File 'lib/smartcall.rb', line 15 def initialize(username, password, campaign_id, reference) @client = Smartcall::Soap::SmsWSClient.new(username, password, campaign_id, reference) end |
Instance Method Details
#send_binary_message(msisdn, header, part, options = {}) ⇒ Object
23 24 25 |
# File 'lib/smartcall.rb', line 23 def (msisdn, header, part, = {}) raise NotImplementedError.new end |
#send_message(msisdn, message_body, options = {}) ⇒ Object
19 20 21 |
# File 'lib/smartcall.rb', line 19 def (msisdn, , = {}) @client.send_sms(msisdn, ) end |
#send_wap_link(msisdn, href, message, options = {}) ⇒ Object
27 28 29 |
# File 'lib/smartcall.rb', line 27 def send_wap_link(msisdn, href, , = {}) raise NotImplementedError.new end |