Module: Vendasta::RI::Competition

Defined in:
lib/vendasta/ri.rb

Overview

Competition

Class Method Summary collapse

Class Method Details

.lookupShareOfVoice(customerIdentifier) ⇒ Object

Lookup Share of Voice



183
184
185
186
187
188
189
190
191
# File 'lib/vendasta/ri.rb', line 183

def self.lookupShareOfVoice(customerIdentifier) # Lookup Share of Voice
	response = HTTParty.get("#{OPTIONS[:endpoint]}/competition/lookupShareOfVoice/", :query => {:apiUser => ENV["VENDASTA_RI_APIUSER"], :apiKey => ENV["VENDASTA_RI_APIKEY"], :customerIdentifier => customerIdentifier})

	if response.success?
  	response = JSON.parse(response.body)
  else
    response = JSON.parse(response.body)
  end
end