{"_id":"mongodb-js-intercom","_rev":"118-19dd813bc5c34f1194daa5cd1300012c","name":"mongodb-js-intercom","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"mongodb-js-intercom","version":"0.1.0","license":"Apache-2.0","_id":"mongodb-js-intercom@0.1.0","maintainers":[{"name":"shum","email":"chris.shum@mongodb.com"}],"homepage":"http://github.com/mongodb-js/intercom-api-wrapper","bugs":{"url":"git://github.com/mongodb-js/intercom-api-wrapper.git/issues"},"dist":{"shasum":"d42cc30da18532836270eb7567865121a9a00c21","tarball":"https://registry.npmjs.org/mongodb-js-intercom/-/mongodb-js-intercom-0.1.0.tgz","integrity":"sha512-mvcFqTd00svJafccNdbT5wHuRu6RSxY1tq0RNVq62EC/k/zam0uxsC557SCH7qtxr0Ms5oeAx/QF6fSZRjg2FA==","signatures":[{"sig":"MEUCIQCnfu2iqnmq0fynexq4G3FJokfkVrohGt9yQwoRrT1ntAIgOX49tXr8E4FPTPqC1XKNyVmRk+FomxPJH5cxRNtF+NA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"d42cc30da18532836270eb7567865121a9a00c21","gitHead":"1fa36e344820429ab401678760d67a9c689dcfb1","scripts":{"ci":"npm run check && npm test","fmt":"mongodb-js-fmt","test":"mocha","check":"mongodb-js-precommit"},"_npmUser":{"name":"shum","email":"chris.shum@mongodb.com"},"precommit":["check"],"deprecated":"This module has been discontinued and is unmaintained. Please see the Intercom API docs for details on the official node.js client.","repository":{"url":"git://github.com/mongodb-js/intercom-api-wrapper.git","type":"git"},"_npmVersion":"3.9.5","description":"Light wrapper around intercom.io node driver to abstract out modintercom-specific functions","directories":{},"_nodeVersion":"6.2.1","dependencies":{"dotenv":"^2.0.0","request":"^2.72.0","highland":"^2.8.1"},"devDependencies":{"chai":"^3.5.0","mocha":"^2.3.4","sinon":"^1.17.4","pre-commit":"^1.1.2","mongodb-js-fmt":"^0.0.3","mongodb-js-precommit":"^0.2.8","eslint-config-mongodb-js":"^1.0.6"},"_npmOperationalInternal":{"tmp":"tmp/mongodb-js-intercom-0.1.0.tgz_1469559612460_0.24009040696546435","host":"packages-16-east.internal.npmjs.com"}},"0.1.1":{"name":"mongodb-js-intercom","version":"0.1.1","license":"Apache-2.0","_id":"mongodb-js-intercom@0.1.1","maintainers":[{"name":"shum","email":"chris.shum@mongodb.com"}],"homepage":"http://github.com/mongodb-js/intercom-api-wrapper","bugs":{"url":"git://github.com/mongodb-js/intercom-api-wrapper.git/issues"},"dist":{"shasum":"84906c3e4d62995bab47e65363bbdf3e50d03df0","tarball":"https://registry.npmjs.org/mongodb-js-intercom/-/mongodb-js-intercom-0.1.1.tgz","integrity":"sha512-ZrVGUistShOrFoaoWXZMnSo0GwymTSJgvrK0N9DEY8m5uKnwIulZcGSyHmNQqMjpr8o86MX+iPRDFfqLFc2L6Q==","signatures":[{"sig":"MEYCIQC7YfzeL/AHaUw0Y+xazy1yCl3HHzfoN3NwS+pNgpsdjwIhAP9ILyINATxherEvypc6zR0RM/q1pzz+Abop3O4Rv18D","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"84906c3e4d62995bab47e65363bbdf3e50d03df0","gitHead":"5db8c994a330e54e3996a85ae438ea77a513b45a","scripts":{"ci":"npm run check && npm test","fmt":"mongodb-js-fmt","test":"mocha","check":"mongodb-js-precommit"},"_npmUser":{"name":"shum","email":"chris.shum@mongodb.com"},"precommit":["check"],"deprecated":"This module has been discontinued and is unmaintained. Please see the Intercom API docs for details on the official node.js client.","repository":{"url":"git://github.com/mongodb-js/intercom-api-wrapper.git","type":"git"},"_npmVersion":"3.9.5","description":"Light wrapper around intercom.io node driver to abstract out modintercom-specific functions","directories":{},"_nodeVersion":"6.2.1","dependencies":{"dotenv":"^2.0.0","request":"^2.72.0","highland":"^2.8.1"},"devDependencies":{"chai":"^3.5.0","mocha":"^2.3.4","sinon":"^1.17.4","pre-commit":"^1.1.2","mongodb-js-fmt":"^0.0.3","mongodb-js-precommit":"^0.2.8","eslint-config-mongodb-js":"^1.0.6"},"_npmOperationalInternal":{"tmp":"tmp/mongodb-js-intercom-0.1.1.tgz_1470419796683_0.711821214761585","host":"packages-12-west.internal.npmjs.com"}}},"time":{"created":"2016-07-26T19:00:14.818Z","modified":"2026-07-15T15:35:16.779Z","0.1.0":"2016-07-26T19:00:14.818Z","0.1.1":"2016-08-05T17:56:38.399Z"},"bugs":{"url":"git://github.com/mongodb-js/intercom-api-wrapper.git/issues"},"license":"Apache-2.0","homepage":"http://github.com/mongodb-js/intercom-api-wrapper","repository":{"url":"git://github.com/mongodb-js/intercom-api-wrapper.git","type":"git"},"description":"Light wrapper around intercom.io node driver to abstract out modintercom-specific functions","maintainers":[{"email":"satya@mongodb.com","name":"satyasinha"},{"email":"kristina.stefanova@mongodb.com","name":"kristina.stefano"},{"email":"nathan.smyth@10gen.com","name":"jarjee"},{"email":"iteng@mongodb.com","name":"devtoolsbot"},{"email":"james.wang@mongodb.com","name":"mongo-j"},{"email":"neal.beeken@mongodb.com","name":"nbbeeken"},{"email":"dbx-node@mongodb.com","name":"dbx-node"},{"email":"devtools-npm-user@mongodb.com","name":"devtools-npm-user"},{"email":"chris.shum@mongodb.com","name":"shum"}],"readme":"# intercom-api-wrapper [![travis][travis_img]][travis_url] [![npm][npm_img]][npm_url]\n\n> Light wrapper around intercom.io's API requests to abstract out intercom-specific methods\n\n## Install\n```\nnpm install mongodb-js-intercom\n```\n\n```javascript\nvar intercom = require('mongodb-js-intercom');\n```\n\n## Example\nThe wrapper exposes three basic functions `getUsers`, `getUsersBySegment`, and `getCount`.\n\n```javascript\ngetUsers(<lastNumDays>, callback);\n```\n`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.\n\n```javascript  \ngetUsersBySegment(<segment>, callback);\n```\n`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.\n\n```javascript\ngetCount(<type>, <count>, callback);\n```\n`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\n\n## License\n\nApache 2.0\n\n[travis_img]: https://img.shields.io/travis/mongodb-js/intercom-api-wrapper.svg\n[travis_url]: https://travis-ci.org/mongodb-js/intercom-api-wrapper\n[npm_img]: https://img.shields.io/npm/v/mongodb-js-intercom.svg\n[npm_url]: https://npmjs.org/package/mongodb-js-intercom\n","readmeFilename":"README.md"}