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
Instance Method Details
#send_binary_message(msisdn, header, part, options = {}) ⇒ Object
21 22 23 |
# File 'lib/smartcall.rb', line 21 def (msisdn, header, part, = {}) raise NotImplementedError.new end |
#send_message(msisdn, message_body, options = {}) ⇒ Object
17 18 19 |
# File 'lib/smartcall.rb', line 17 def (msisdn, , = {}) @client.send_sms(msisdn, ) end |
#send_wap_link(msisdn, href, message, options = {}) ⇒ Object
25 26 27 |
# File 'lib/smartcall.rb', line 25 def send_wap_link(msisdn, href, , = {}) raise NotImplementedError.new end |