Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 580 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 580 Bytes

Ruby Mixpanel API Client

Ruby access to the Mixpanel web analytics tool.

Installation

gem install mixpanel_client

Example Usage

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

Copyright (c) 2009+ Keolo Keagy. See LICENSE for details.