intercom 3.7.4 → 3.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -2
- data/changes.txt +4 -0
- data/lib/intercom/errors.rb +3 -0
- data/lib/intercom/request.rb +2 -0
- data/lib/intercom/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7b7dc724a3cb9798e155088683adc937fa0678c
|
4
|
+
data.tar.gz: ba3c1721df90d5bef05c57a5f58fb68fc2766372
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb355da15454b59c17e898149c0280b60686b59ab13ee8ee23482ce9c019f5b187357f88eaae5cd72496e2767fbf283f0cf10c907d90d9bcd142469097fd703e
|
7
|
+
data.tar.gz: 94143563fa7c90d483f565521016db8cadab4a3a5bd452a48b4e5117154ff7455bb2ef733fe6d8b181961f09b222644d8026183c312648e16bb7fb74378dc083
|
data/README.md
CHANGED
@@ -22,19 +22,24 @@ This version of the gem is compatible with `Ruby 2.1` and above.
|
|
22
22
|
|
23
23
|
Using bundler:
|
24
24
|
|
25
|
-
gem 'intercom', '~> 3.7.
|
25
|
+
gem 'intercom', '~> 3.7.4'
|
26
26
|
|
27
27
|
## Basic Usage
|
28
28
|
|
29
29
|
### Configure your client
|
30
30
|
|
31
|
-
> If you already have a personal access token you can find it [here](https://app.intercom.io/
|
31
|
+
> If you already have a personal access token you can find it [here](https://app.intercom.io/a/apps/_/developer_hub/). If you want to create or learn more about personal access tokens then you can find more info [here](https://developers.intercom.io/docs/personal-access-tokens).
|
32
32
|
|
33
33
|
```ruby
|
34
34
|
# With an OAuth or Personal Access token:
|
35
35
|
intercom = Intercom::Client.new(token: 'my_token')
|
36
36
|
```
|
37
37
|
|
38
|
+
```ruby
|
39
|
+
# With a versioned app:
|
40
|
+
intercom = Intercom::Client.new(token: 'my_token', api_version: '1.0')
|
41
|
+
```
|
42
|
+
|
38
43
|
If you are building a third party application you can get your access_tokens by [setting-up-oauth](https://developers.intercom.io/page/setting-up-oauth) for Intercom.
|
39
44
|
You can also use the [omniauth-intercom lib](https://github.com/intercom/omniauth-intercom) which is a middleware helping you to handle the authentication process with Intercom.
|
40
45
|
|
data/changes.txt
CHANGED
data/lib/intercom/errors.rb
CHANGED
@@ -84,6 +84,9 @@ module Intercom
|
|
84
84
|
# Raised when an invalid api version is used
|
85
85
|
class ApiVersionInvalid < IntercomError; end
|
86
86
|
|
87
|
+
# Raised when an creating a scroll if one already exists
|
88
|
+
class ScrollAlreadyExistsError < IntercomError; end
|
89
|
+
|
87
90
|
#
|
88
91
|
# Non-public errors (internal to the gem)
|
89
92
|
#
|
data/lib/intercom/request.rb
CHANGED
@@ -187,6 +187,8 @@ module Intercom
|
|
187
187
|
raise Intercom::ResourceNotUniqueError.new(error_details['message'], error_context)
|
188
188
|
when 'intercom_version_invalid'
|
189
189
|
raise Intercom::ApiVersionInvalid.new(error_details['message'], error_context)
|
190
|
+
when 'scroll_exists'
|
191
|
+
raise Intercom::ScrollAlreadyExistsError.new(error_details['message'], error_context)
|
190
192
|
when nil, ''
|
191
193
|
raise Intercom::UnexpectedError.new(message_for_unexpected_error_without_type(error_details, parsed_http_code), error_context)
|
192
194
|
else
|
data/lib/intercom/version.rb
CHANGED