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.



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

Raises:

  • (NotImplementedError)


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

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

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



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

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

Raises:

  • (NotImplementedError)


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

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