intercom-client
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -20,4 +20,11 @@ 'use strict'; | ||
key: 'create', | ||
value: function create(f) { | ||
this.client.post('/contacts', {}, f); | ||
value: function create() { | ||
var parameters_or_function = arguments[0]; | ||
var params = {}; | ||
var callback = parameters_or_function; | ||
if (typeof parameters_or_function !== 'function') { | ||
params = parameters_or_function; | ||
callback = arguments[1]; | ||
} | ||
this.client.post('/contacts', params, callback); | ||
} | ||
@@ -24,0 +31,0 @@ }, { |
{ | ||
"name": "intercom-client", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "Official Node bindings to the Intercom API", | ||
@@ -33,4 +33,3 @@ "homepage": "https://github.com/intercom/intercom-node", | ||
"babel-core": "^5.5.0", | ||
"nock": "*", | ||
"locus": "*" | ||
"nock": "*" | ||
}, | ||
@@ -37,0 +36,0 @@ "scripts": { |
@@ -6,2 +6,4 @@ # intercom-node | ||
[![npm version](https://badge.fury.io/js/intercom-client.svg)](http://badge.fury.io/js/intercom-client) | ||
## Installation | ||
@@ -8,0 +10,0 @@ |
32168
10
559
390