Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

intercom-client

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

intercom-client - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

dist/bulk.js

7

dist/user.js

@@ -11,2 +11,4 @@ 'use strict';

var _bulk = require('./bulk');
var User = (function () {

@@ -44,2 +46,7 @@ function User(client) {

}
}, {
key: 'bulk',
value: function bulk(params, f) {
new _bulk.Bulk(this.client, 'user').bulk(params, f);
}
}]);

@@ -46,0 +53,0 @@

4

package.json
{
"name": "intercom-client",
"version": "0.2.1",
"version": "0.2.2",
"description": "Official Node bindings to the Intercom API",

@@ -21,3 +21,3 @@ "homepage": "https://github.com/intercom/intercom-node",

"dependencies": {
"unirest": "*"
"unirest": "^0.4.2"
},

@@ -24,0 +24,0 @@ "devDependencies": {

@@ -10,5 +10,11 @@ # intercom-node

## Installation
```bash
npm install intercom-client
```
## Testing
```node
```bash
npm test

@@ -21,16 +27,18 @@ ```

```
```bash
gulp babel
```
Start a repl:
Require Intercom:
```node
var Intercom = require('./dist/index');
```
node
```
## Usage
Require Intercom:
```node
var Intercom = require('./dist/index');
var Intercom = require('intercom-node');
```

@@ -41,3 +49,3 @@

```node
var client = new Intercom.Client("app_id", "app_api_key");
var client = new Intercom.Client('app_id', 'app_api_key');
```

@@ -49,3 +57,3 @@

// Create/update a user
client.users.create({ email: "jayne@serenity.io" }, function (r) {
client.users.create({ email: 'jayne@serenity.io' }, function (r) {
console.log(r);

@@ -123,3 +131,3 @@ });

// Create/update a company
client.companies.create({ company_id: "1234", name: "serenity" }, function (r) {
client.companies.create({ company_id: '1234', name: 'serenity' }, function (r) {
console.log(r);

@@ -233,2 +241,14 @@ });

## Bulk users
The [Bulk APIs](https://doc.intercom.io/api/#bulk-apis) are themselves in Beta, but allow for the
asynchronous creation and deletion of users:
```node
client.users.bulk([
{ create: { email: 'wash@serenity.io' }},
{ create: { email: 'mal@serenity.io'}}
], callback);
```
## Pagination

@@ -235,0 +255,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc