Sha256: 0360a64e19295336a845565f55b7116282c6684ecf7598e4f9693a90495dcd20
Contents?: true
Size: 541 Bytes
Versions: 1
Compression:
Stored size: 541 Bytes
Contents
require 'httparty' require "smsc/sender" require "smsc/version" module Smsc class Sms attr_reader :login, :password, :charset def initialize(login, password, charset = 'utf-8') @login = login @password = password @charset = charset end def message(message, phones) message = message phones = phones.join(",") Smsc::Sender.post('https://smsc.ru/sys/send.php', :query => { :login => login, :psw => password, :phones => phones, :mes => message, :charset => charset }) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
smsc-0.0.2 | lib/smsc.rb |