Ruby access to the Mixpanel web analytics tool.
gem install mixpanel_client
require 'rubygems'
require 'json'
require 'mixpanel_client'
config = {:api_key => 'changeme', :api_secret => 'changeme'}
api = Mixpanel::Client.new(config)
data = api.request(:events, :general, {
:event => '["test-event"]',
:unit => 'hour',
:interval => 24
})
puts data.inspect
Copyright (c) 2009+ Keolo Keagy. See LICENSE for details.