Skip to content

Commit a06dc87

Browse files
authored
Merge pull request #352 from intercom/company_scroll_readme
Adding lead and company scroll example
2 parents d02264f + 59f2c96 commit a06dc87

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ intercom.companies.all.each {|company| puts %Q(#{company.name} - #{company.custo
134134
intercom.companies.all.map {|company| company.name }
135135
# Get a list of users in a company
136136
intercom.companies.users(company.id)
137+
# Get a large list of companies using scroll
138+
intercom.companies.scroll.each { |comp| puts comp.name}
139+
# Please see users scroll for more details of how to use scroll
137140
```
138141

139142
#### Tags
@@ -371,6 +374,10 @@ intercom.contacts.convert(contact, user)
371374

372375
# Delete a contact
373376
intercom.contacts.delete(contact)
377+
378+
# Get a large list of contacts using scroll
379+
intercom.contacts.scroll.each { |lead| puts lead.id}
380+
# Please see users scroll for more details of how to use scroll
374381
```
375382

376383
### Counts

0 commit comments

Comments
 (0)