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.



13
14
15
# File 'lib/smartcall.rb', line 13

def initialize(username, password, campaign_id, reference)
  @client = Smartcall::Soap::SmsClient.new(username, password, campaign_id, reference)
end

Instance Method Details

#send_binary_message(msisdn, header, part, options = {}) ⇒ Object

Raises:

  • (NotImplementedError)


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

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

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



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

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

Raises:

  • (NotImplementedError)


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

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