Skip to content

Commit 509261a

Browse files
committed
Readme
1 parent 4bd3df9 commit 509261a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,22 @@ The metadata key values in the example are treated as follows-
298298
- order_number: a Rich Link (value contains 'url' and 'value' keys)
299299
- price: An Amount in US Dollars (value contains 'amount' and 'currency' keys)
300300

301+
### Contacts
302+
303+
`Contacts` represent logged out users of your application.
304+
305+
```ruby
306+
# Create a contact
307+
contact = Intercom::Contact.create(email: "some_contact@example.com")
308+
309+
# Update a contact
310+
contact.custom_attributes['foo'] = 'bar'
311+
contact.save
312+
313+
# Find contacts by email
314+
contacts = Intercom::Contact.find_all(email: "some_contact@example.com")
315+
```
316+
301317
### Subscriptions
302318

303319
Subscribe to events in Intercom to receive webhooks.

0 commit comments

Comments
 (0)