Class: Smartcall::API

Inherits:
Object
  • Object
show all
Defined in:
lib/smartcall.rb

Instance Method Summary collapse

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

Raises:

  • (NotImplementedError)


22
23
24
# File 'lib/smartcall.rb', line 22

def send_binary_message(msisdn, header, part, options = {})
  raise NotImplementedError.new
end

#send_message(msisdn, message_body, options = {}) ⇒ Object



18
19
20
# File 'lib/smartcall.rb', line 18

def send_message(msisdn, message_body, options = {})
  @client.send_sms(msisdn, message_body)
end

Raises:

  • (NotImplementedError)


26
27
28
# File 'lib/smartcall.rb', line 26

def send_wap_link(msisdn, href, message, options = {})
  raise NotImplementedError.new
end