You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Official Node bindings to the [Intercom API](https://api.intercom.io/docs)
7
8
8
-
### Excluding Customer Search (2.0), only supports 1.X
9
+
##Project Updates
9
10
10
-
## Installation
11
+
### Maintenance
12
+
13
+
We're currently building a new team to provide in-depth and dedicated SDK support.
14
+
15
+
In the meantime, we'll be operating on limited capacity, meaning all pull requests will be evaluated on a best effort basis and will be limited to critical issues.
Try out our [Docker Image (Beta)](https://hub.docker.com/r/intercom/sdk-images/) to help you get started more quickly. <br>
14
-
It should make it easier to get setup with the SDK and start interacting with the API. <br>
15
-
(Note, this is in Beta and is for testing purposes only, it should not be used in production)
17
+
We'll communicate all relevant updates as we build this new team and support strategy in the coming months.
18
+
19
+
## Installation
16
20
17
21
```bash
18
-
npm install intercom-client
22
+
yarn add intercom-client
19
23
```
20
24
21
25
**This client is intended for server side use only. Please use the [Intercom Javascript SDK](https://developers.intercom.com/v2.0/docs/intercom-javascript) for client-side operations.**
22
26
23
27
## Testing
24
28
25
29
```bash
26
-
npmtest
30
+
yarntest
27
31
```
28
32
29
33
## Running the code locally
30
34
31
35
Compile using babel:
32
36
33
37
```bash
34
-
gulp babel
38
+
yarn gulp babel
35
39
```
36
40
37
41
Require Intercom:
@@ -48,8 +52,7 @@ Require Intercom:
48
52
var Intercom =require('intercom-client');
49
53
```
50
54
51
-
Create a client:
52
-
#### Using Access Tokens
55
+
Create a client using access tokens:
53
56
54
57
```node
55
58
var client =newIntercom.Client({ token:'my_token' });
@@ -63,9 +66,11 @@ This client library supports two kinds of callbacks:
63
66
client.users.list(function (d) {
64
67
// d is the response from the server
65
68
});
69
+
```
66
70
67
-
//Or
71
+
Or
68
72
73
+
```node
69
74
client.users.list(function (err, d) {
70
75
// err is an error response object, or null
71
76
// d is a successful response object, or null
@@ -97,7 +102,7 @@ client.useRequestOpts({
97
102
98
103
Note that certain request options (such as `json`, and certain `headers` names cannot be overriden).
99
104
100
-
####Setting the API version
105
+
### Setting the API version
101
106
102
107
We version our API (see the "Choose Version" section of the [API & Webhooks Reference](https://developers.intercom.com/intercom-api-reference/reference) for details). You can specify which version of the API to use when performing API requests using request options:
Note: events will work when identified by 'email'. The `event_name` and `created_at` params are both required. Either `user_id` OR `email` is required.
0 commit comments