Skip to content

Commit 384a8f8

Browse files
committed
add token example to readme
1 parent f8f0cdf commit 384a8f8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ Using bundler:
3030

3131
```ruby
3232
intercom = Intercom::Client.new(app_id: 'my_app_id', api_key: 'my_api_key')
33+
34+
# With an OAuth token:
35+
intercom = Intercom::Client.new(token: 'my_token')
3336
```
3437

3538
You can get your `app_id` from the URL when you're logged into Intercom (it's the alphanumeric just after `/apps/`) and your API key from the API keys integration settings page (under your app settings - integrations in Intercom).

0 commit comments

Comments
 (0)