Sha256: bc6519cc8e197d1b8ff4480ce8aef3109ea06fc3192a39408016e26f9f531a32
Contents?: true
Size: 898 Bytes
Versions: 2
Compression:
Stored size: 898 Bytes
Contents
$:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__))) require 'smartcall/soap/default' require 'smartcall/soap/default_driver' require 'smartcall/soap/smartcall_error' require 'smartcall/soap/sms_ws_client' module Smartcall VERSION = File.exist?('VERSION') ? File.read('VERSION') : "" class API def initialize(username, password, campaign_id, reference) @client = Smartcall::Soap::SmsWSClient.new(username, password, campaign_id, reference) end def send_message(msisdn, message_body, options = {}) @client.send_sms(msisdn, message_body) end def send_binary_message(msisdn, header, part, options = {}) raise NotImplementedError.new end def send_wap_link(msisdn, href, message, options = {}) raise NotImplementedError.new end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
craigp-smartcall-0.0.2 | lib/smartcall.rb |
craigp-smartcall-0.0.1 | lib/smartcall.rb |