Skip to content

Commit 681bbc2

Browse files
authored
Merge pull request intercom#493 from intercom/mmurray/update_readme
Add code block + docs link to README file
2 parents 3f3a25a + cce0859 commit 681bbc2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -470,9 +470,13 @@ intercom.contacts.scroll.each { |lead| puts lead.id}
470470

471471
#### Customers
472472

473+
Our Customer API is a central place for all the information on your customers, whether they're users or leads. More detail in our API documentation on [Customers](https://developers.intercom.com/intercom-api-reference/v0/reference#customers).
474+
475+
```ruby
473476
# Search for customers
474477
customers = intercom.customers.search(query: { "field": "name", "operator": "=", "value": "Alice"}, per_page: 50, sort_field: "name", sort_order: "ascending")
475478
customers.each { |customer| p customer.name }
479+
```
476480

477481
#### Counts
478482

0 commit comments

Comments
 (0)