Skip to content

Simple ruby client interface to the Mixpanel (Web Analytics) API

License

Notifications You must be signed in to change notification settings

paramaw/mixpanel_client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Simple ruby client interface to the Mixpanel (Web Analytics) API

Resources

License

Stars

Watchers

Forks

Packages

No packages published