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

6
+
7
+
> Ruby bindings for the [Intercom API](https://developers.intercom.io/reference).
8
+
9
+
## Project Updates
10
+
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.
16
+
17
+
We'll communicate all relevant updates as we build this new team and support strategy in the coming months.
For generating Intercom JavaScript script tags for Rails, please see https://github.com/intercom/intercom-rails.
23
+
For generating Intercom JavaScript script tags for Rails, please see [intercom/intercom-rails](https://github.com/intercom/intercom-rails)
10
24
11
25
## Upgrading information
12
26
@@ -16,12 +30,15 @@ This version of the gem is compatible with `Ruby 2.1` and above.
16
30
17
31
## Installation
18
32
19
-
20
-
gem install intercom
33
+
```bash
34
+
gem install intercom
35
+
```
21
36
22
37
Using bundler:
23
38
24
-
gem 'intercom', '~> 4.1'
39
+
```bundler
40
+
gem 'intercom', '~> 4.1'
41
+
```
25
42
26
43
## Basic Usage
27
44
@@ -46,29 +63,31 @@ You can also use the [omniauth-intercom lib](https://github.com/intercom/omniaut
46
63
47
64
Resources this API supports:
48
65
49
-
https://api.intercom.io/contacts
50
-
https://api.intercom.io/visitors
51
-
https://api.intercom.io/companies
52
-
https://api.intercom.io/data_attributes
53
-
https://api.intercom.io/events
54
-
https://api.intercom.io/tags
55
-
https://api.intercom.io/notes
56
-
https://api.intercom.io/segments
57
-
https://api.intercom.io/conversations
58
-
https://api.intercom.io/messages
59
-
https://api.intercom.io/admins
60
-
https://api.intercom.io/teams
61
-
https://api.intercom.io/counts
62
-
https://api.intercom.io/subscriptions
63
-
https://api.intercom.io/jobs
64
-
https://api.intercom.io/articles
65
-
https://api.intercom.io/help_center/collections
66
-
https://api.intercom.io/help_center/sections
67
-
66
+
```text
67
+
https://api.intercom.io/contacts
68
+
https://api.intercom.io/visitors
69
+
https://api.intercom.io/companies
70
+
https://api.intercom.io/data_attributes
71
+
https://api.intercom.io/events
72
+
https://api.intercom.io/tags
73
+
https://api.intercom.io/notes
74
+
https://api.intercom.io/segments
75
+
https://api.intercom.io/conversations
76
+
https://api.intercom.io/messages
77
+
https://api.intercom.io/admins
78
+
https://api.intercom.io/teams
79
+
https://api.intercom.io/counts
80
+
https://api.intercom.io/subscriptions
81
+
https://api.intercom.io/jobs
82
+
https://api.intercom.io/articles
83
+
https://api.intercom.io/help_center/collections
84
+
https://api.intercom.io/help_center/sections
85
+
```
68
86
69
87
### Examples
70
88
71
89
#### Contacts
90
+
72
91
Note that this is a new resource compatible only with the new [Contacts API](https://developers.intercom.com/intercom-api-reference/reference#contacts-model) released in API v2.0.
73
92
74
93
```ruby
@@ -146,6 +165,7 @@ contact.companies.each {|c| p c.name}
You can handle the rate limits yourself but a simple option is to use the handle_rate_limit flag.
675
711
This will automatically catch the 429 rate limit exceeded error and wait until the reset time to retry. After three retries a rate limit exception will be raised. Encountering this error frequently may require a revisiting of your usage of the API.
0 commit comments