Sha256: 33464137a8ba146ea4e3f3a2bb2b7dce6eaab40ae1958ba4bfccc481aec9c6c9

Contents?: true

Size: 516 Bytes

Versions: 6

Compression:

Stored size: 516 Bytes

Contents

module Smshelper
  module Api
    class Mycoolsms < Base
      base_uri 'https://www.my-cool-sms.com/api-socket.php '

      def initialize(*args)
        config = args.shift
        add_query_options! :username => config.mycoolsms[:uname], :password => config.mycoolsms[:passwd]
        super
      end

      def send_message(message)
        (post)
      end

      def get_balance
        (post '', :extra_query => {:function => :getbalance})
      end

      def hlr_lookup(number)

      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
smshelper-0.2.10 lib/smshelper/api/mycoolsms.rb
smshelper-0.2.9 lib/smshelper/api/mycoolsms.rb
smshelper-0.2.8 lib/smshelper/api/mycoolsms.rb
smshelper-0.2.7 lib/smshelper/api/mycoolsms.rb
smshelper-0.2.6 lib/smshelper/api/mycoolsms.rb
smshelper-0.2.5 lib/smshelper/api/mycoolsms.rb