Skip to content

Instantly share code, notes, and snippets.

View nolanamy's full-sized avatar
🤫

Nolan Amy nolanamy

🤫
View GitHub Profile
@nolanamy
nolanamy / mixpanel.js
Last active August 29, 2015 14:20 — forked from ivarvong/gist:3763494
Mixpanel raw data export
var crypto = require('crypto');
var md5 = crypto.createHash('md5');
var request = require('request');
var api_key = 'your_api_key_here';
var api_secret = 'your_api_secret_here';
var api_endpoint = 'https://data.mixpanel.com/api/2.0/';
var current_time = parseInt((new Date().getTime())/1000);