Module: Vendasta::RI::Social
- Defined in:
- lib/vendasta/ri.rb
Overview
Social
Class Method Summary collapse
-
.getSocialStats(customerIdentifier) ⇒ Object
Get Social Stats.
Class Method Details
.getSocialStats(customerIdentifier) ⇒ Object
Get Social Stats
153 154 155 156 157 158 159 160 161 |
# File 'lib/vendasta/ri.rb', line 153 def self.getSocialStats(customerIdentifier) # Get Social Stats response = HTTParty.get("#{OPTIONS[:endpoint]}/social/getStats/", :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 |