Class: Eztexting::Keywords
Class Method Summary collapse
-
.configure ⇒ Array
Configure A Keyword param [Hash] This requires only four keys, the keyword your targeting, its group, an autoreply and a url.
-
.rent(opts = {}) ⇒ Array
Rent a keyword.
Methods inherited from Base
do_post, process, processed_reponse
Class Method Details
.configure ⇒ Array
Configure A Keyword param [Hash] This requires only four keys, the keyword your targeting, its group, an autoreply and a url
31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/eztexting/keywords.rb', line 31 def self.configure location = "/keyword/setup" = { :keyword => opts[:keyword], :group => opts[:group], :autoreply => opts[:autoreply], :url => opts[:url] } response = self.do_post(location,) end |
.rent(opts = {}) ⇒ Array
Rent a keyword
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/eztexting/keywords.rb', line 7 def self.rent(opts={}) location = "/keyword/rent/" = { :keyword => opts[:keyword], :firstname => opts[:first_name], :lastname => opts[:last_name], :address => opts[:address], :city => opts[:city], :state => opts[:state], :zip => opts[:zip], :country => opts[:country], :type => opts[:cc_type], :ccnumber => opts[:cc_number], :cccode => opts[:cc_verification_code], :expm => opts[:cc_expiration_month], :expy => opts[:cc_expiration_year] } response = self.do_post(location,) end |