Skip to content

zdwalter/mixpanel-node

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MixpanelAPI

Queries the Mixpanel Data API. Requires node 0.4.0 or higher.

Installation

clone this repo, it's not on npm yet.

Show me the code

Note: this was forked from the CoffeScript implementation done by Campfire Labs.

mixpanel = require('mixpanel')

var api_key = 'YOUR API KEY',
    api_secret = 'YOUR API SECRET';

var mx = new mixpanel({
    api_key: api_key,
    api_secret: api_secret
});

mx.request(
    'button click',
    {
        type: 'unique',
        interval: 7,
        unit: 'day'
    },
    function(error, data) {
        console.dir(data);
    }
        
)

About

Node module to query the mixpanel API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published