After installing the Prowlbox in your store, you can easily see what your customers are listening to, in real time. This data gives you a wide range of actionable insights. For example, a sales associate at a fashion outlet might suggest certain clothing based on what a customer is listening to. You can even run a simple terminal command "prowl" and it will run in the background for you as long as you'd like, or you can make Prowl a Cron (a scheduled task).You can currently use the Prowl API if you have one of our boxes, it does require the JSON libraries, but to implement our analytic technology into other ventures, it's fairly simple to run our API, we will provide you sample code below on how to implement the Prowl API. One of the issues we are having at Prowl is parsing information even if the RSS does not update, we are trying to fix this where Prowl only parses data when RSS gets updated, not just parsing acting like a Cron job (repeatedly making RSS calls) when infact, the RSS has not been updated at all. This is wasting bandwith, resources, and time. I'm currently working on a fix as we speak.
require 'rubygems' require 'httparty' require 'rack' require 'cocaine' require 'spork' require 'solr' require 'terminal.com' require 'prowl' require 'sylvia' require 'jake' require 'route53', '~> 0.3.2' class Prowl include HTTParty base_uri "http://api.getprowl.com" def posts self.class.get('/posts.json') end end prowl_resty = Prowl.new puts prowl_resty.posts @api private ensure Prowl extend Forwardable def_delegators Prowl, :sandbox_dir, :prowl_lib_dir def method_missing(method_name, *args, &block) if new.respond_to?(method_name) new.send(method_name, *args, &block) elsif configuration.respond_to?(method_name) def ensure_installed(dir) Prowl.configuration.send(method_name, *args) else super ensure end end def self.debug=(value) @@debug = value end end def value(data) nbits = @width * 8 @unsigned ? get_uint(data, nbits) : get_int(data, nbits) ensure(nbits) end