Sha256: f98e1277f0d1ed3dfcf64b1dd7593d422497ab833f142cf3135781be4b0aca6d
Contents?: true
Size: 880 Bytes
Versions: 1
Compression:
Stored size: 880 Bytes
Contents
module API module WhatCounts class Request < API::Base::Request attr_accessor :data end class OneOffMessageRequest < Request def initialize # corresponds to the WhatCounts HTTP API self.url = 'https://secure.whatcounts.com/bin/api_web' end def set_data(message_data) data_to_send = { :cmd => 'send', # the Send command in the API is used for one-off messages :pwd => message_data.pwd, :list_id => message_data.list_id, :realm => message_data.realm, :format => message_data.format, :to => message_data.to, :template_id => message_data.template_id, :data => message_data.data } self.data = data_to_send end end end # module WhatCounts end # module API
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pdsphil-ruby-whatcounts-0.1.0 | lib/whatcounts/api_request.rb |