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.
14 15 16 |
# File 'lib/smartcall.rb', line 14 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
22 23 24 |
# File 'lib/smartcall.rb', line 22 def (msisdn, header, part, = {}) raise NotImplementedError.new end |
#send_message(msisdn, message_body, options = {}) ⇒ Object
18 19 20 |
# File 'lib/smartcall.rb', line 18 def (msisdn, , = {}) @client.send_sms(msisdn, ) end |
#send_wap_link(msisdn, href, message, options = {}) ⇒ Object
26 27 28 |
# File 'lib/smartcall.rb', line 26 def send_wap_link(msisdn, href, , = {}) raise NotImplementedError.new end |