Skip to content

Instantly share code, notes, and snippets.

View interhive's full-sized avatar

Chris Grant interhive

View GitHub Profile
require 'rubygems'
require 'base64'
require 'json'
require 'httparty'
# based on https://mixpanel.com/docs/integration-libraries/ruby. Changed to use httpparty, rather than fork a process
module MixPanel
include HTTParty
TOKEN = "PUT YOUR TOKEN HERE"
base_uri "https://api.mixpanel.com/"