intercom-client
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -66,3 +66,3 @@ 'use strict'; | ||
value: function ping(f) { | ||
unirest.get('https://api.intercom.io/admins').auth(this.appId, this.appApiKey).type('json').header('Accept', 'application/json').header('User-Agent', 'intercom-node-client/0.5.0').end(function (r) { | ||
unirest.get('https://api.intercom.io/admins').auth(this.appId, this.appApiKey).type('json').header('Accept', 'application/json').header('User-Agent', 'intercom-node-client/0.5.1').end(function (r) { | ||
return f(r.status); | ||
@@ -76,3 +76,3 @@ }); | ||
unirest.put('https://api.intercom.io' + endpoint).auth(this.appId, this.appApiKey).type('json').send(data).header('Accept', 'application/json').header('User-Agent', 'intercom-node-client/0.5.0').end(function (r) { | ||
unirest.put('https://api.intercom.io' + endpoint).auth(this.appId, this.appApiKey).type('json').send(data).header('Accept', 'application/json').header('User-Agent', 'intercom-node-client/0.5.1').end(function (r) { | ||
return _this.callback(f, r); | ||
@@ -86,3 +86,3 @@ }); | ||
unirest.post('https://api.intercom.io' + endpoint).auth(this.appId, this.appApiKey).type('json').send(data).header('Accept', 'application/json').header('User-Agent', 'intercom-node-client/0.5.0').end(function (r) { | ||
unirest.post('https://api.intercom.io' + endpoint).auth(this.appId, this.appApiKey).type('json').send(data).header('Accept', 'application/json').header('User-Agent', 'intercom-node-client/0.5.1').end(function (r) { | ||
return _this2.callback(f, r); | ||
@@ -96,3 +96,3 @@ }); | ||
unirest.get('https://api.intercom.io' + endpoint).auth(this.appId, this.appApiKey).type('json').query(data).header('Accept', 'application/json').header('User-Agent', 'intercom-node-client/0.5.0').end(function (r) { | ||
unirest.get('https://api.intercom.io' + endpoint).auth(this.appId, this.appApiKey).type('json').query(data).header('Accept', 'application/json').header('User-Agent', 'intercom-node-client/0.5.1').end(function (r) { | ||
return _this3.callback(f, r); | ||
@@ -106,3 +106,3 @@ }); | ||
unirest.get(paginationObject.next).auth(this.appId, this.appApiKey).type('json').header('Accept', 'application/json').header('User-Agent', 'intercom-node-client/0.5.0').end(function (r) { | ||
unirest.get(paginationObject.next).auth(this.appId, this.appApiKey).type('json').header('Accept', 'application/json').header('User-Agent', 'intercom-node-client/0.5.1').end(function (r) { | ||
return _this4.callback(f, r); | ||
@@ -116,3 +116,3 @@ }); | ||
unirest['delete']('https://api.intercom.io' + endpoint).auth(this.appId, this.appApiKey).type('json').query(data).header('Accept', 'application/json').header('User-Agent', 'intercom-node-client/0.5.0').end(function (r) { | ||
unirest['delete']('https://api.intercom.io' + endpoint).auth(this.appId, this.appApiKey).type('json').query(data).header('Accept', 'application/json').header('User-Agent', 'intercom-node-client/0.5.1').end(function (r) { | ||
return _this5.callback(f, r); | ||
@@ -119,0 +119,0 @@ }); |
{ | ||
"name": "intercom-client", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Official Node bindings to the Intercom API", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/intercom/intercom-node", |
@@ -289,8 +289,8 @@ # intercom-node | ||
from: { | ||
"type": "admin", | ||
"id": "21599" | ||
type: "admin", | ||
id: "21599" | ||
}, | ||
to: { | ||
"type": "user", | ||
"id": "55c1ce1def857c31f80001af" | ||
type: "user", | ||
id: "55c1ce1def857c31f80001af" | ||
} | ||
@@ -305,7 +305,7 @@ } | ||
var message = { | ||
"from": { | ||
"type": "user", | ||
"id": "55c1ce1def857c31f80001af" | ||
from: { | ||
type: "user", | ||
id: "55c1ce1def857c31f80001af" | ||
}, | ||
"body": "Howdy" | ||
body: "Howdy" | ||
} | ||
@@ -316,2 +316,4 @@ | ||
## Conversations | ||
Listing conversations ([documentation](https://doc.intercom.io/api/#list-conversations)): | ||
@@ -318,0 +320,0 @@ |
30186
367