This package has been deprecated

Author message:

This module has been discontinued and is unmaintained. Please see the Intercom API docs for details on the official node.js client.

mongodb-js-intercom

0.1.1 • Public • Published

intercom-api-wrapper travis npm

Light wrapper around intercom.io's API requests to abstract out intercom-specific methods

Install

npm install mongodb-js-intercom
var intercom = require('mongodb-js-intercom');

Example

The wrapper exposes three basic functions getUsers, getUsersBySegment, and getCount.

getUsers(<lastNumDays>, callback);

getUsers returns a list of users. Expects an integer for lastNumDays and a callback - lastNumDays limits the return results to only users created in the last lastNumDays days, omit this parameter to get all users ever created.

getUsersBySegment(<segment>, callback);

getUsersBySegment returns a list of users that are in a specified segment. Expects a string for segment and a callback - segment should be an existing segment in Intercom.

getCount(<type>, <count>, callback);

getCount returns a list of key + count pairs, Expects a string for type and count and a callback - type determines the unit of grouping (company, segment, tag, users) and count determines how to bucket the units

License

Apache 2.0

/mongodb-js-intercom/

    Package Sidebar

    Install

    npm i mongodb-js-intercom

    Weekly Downloads

    2

    Version

    0.1.1

    License

    Apache-2.0

    Last publish

    Collaborators

    • orechova
    • himanshusinghs
    • c-buckingham
    • mongo-j
    • mabaasit
    • alexander_schroll
    • chuck.kalmanek
    • mongodb-js-user
    • rueckstiess
    • durran
    • lerouxb
    • fredtruman
    • mbroadst
    • hswolff
    • satyasinha
    • matt_d_rat
    • rhysm
    • tomhollander
    • alena.khineika
    • jeff-allen-mongo
    • mmarcon
    • jonathan.balsano
    • mongodb-build
    • jack.weir
    • stennie
    • mcasimir
    • kristina.stefano
    • jarjee
    • shaketbaby
    • devtoolsbot
    • addaleax
    • gribnoysup
    • mutukrish
    • shum