mixpanel-jql

0.0.3 • Public • Published

mixpanel-jql

Mixpanel JQL Client

const Client = require('mixpanel-jql');
const client = new Client('mixpanel secret here');
 
// query data from mixpanel
client.query()
  .codes('function main() {...}') // or .file('./filepath')
  .params({
    //...
  })
  .send()
  .then(result => console.log(result))
  .catch(err => console.log(err));
 
// generate script
client.query()
  .codes('function main() {...}') // or .file('./filepath')
  .params({
    //...
  })
  .generateScript()
  .then(script => console.log(script));

/mixpanel-jql/

    Package Sidebar

    Install

    npm i mixpanel-jql

    Weekly Downloads

    136

    Version

    0.0.3

    License

    MIT

    Last publish

    Collaborators

    • poying