README.md in intercom-3.7.6 vs README.md in intercom-3.7.7
- old
+ new
@@ -20,17 +20,17 @@
gem install intercom
Using bundler:
- gem 'intercom', '~> 3.7.5'
+ gem 'intercom', '~> 3.7.6'
## Basic Usage
### Configure your client
-> 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).
+> 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).
```ruby
# With an OAuth or Personal Access token:
intercom = Intercom::Client.new(token: 'my_token')
```
@@ -356,9 +356,16 @@
metadata: {
"invitee_email" => "pi@example.org",
invite_code: "ADDAFRIEND",
"found_date" => 12909364407
}
+)
+
+# Alternatively, use "user_id" in case your app allows multiple accounts having the same email
+intercom.events.create(
+ event_name: "invited-friend",
+ created_at: Time.now.to_i,
+ user_id: user.uuid,
)
# Retrieve event list for user with id:'123abc'
intercom.events.find_all("type" => "user", "intercom_user_id" => "123abc")