Skip to content

Commit 215c97e

Browse files
authoredOct 30, 2020
Readme updates (#559)
1 parent bab09db commit 215c97e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

‎README.md

+9
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ intercom.contacts.save(contact)
8686
contact.role = "user"
8787
intercom.contacts.save(contact)
8888

89+
# Archive a contact
90+
intercom.contacts.archive(contact)
91+
92+
# Unarchive a contact
93+
intercom.contacts.unarchive(contact)
94+
8995
# Delete a contact permanently
9096
intercom.contacts.delete(contact)
9197

@@ -169,6 +175,9 @@ company = intercom.companies.find(id: "41e66f0313708347cb0000d0")
169175
company.name = 'Updated company name'
170176
intercom.companies.save(company)
171177

178+
# Delete a company
179+
intercom.companies.delete(company)
180+
172181
# Iterate over all companies
173182
intercom.companies.all.each {|company| puts %Q(#{company.name} - #{company.custom_attributes["referral_source"]}) }
174183
intercom.companies.all.map {|company| company.name }

0 commit comments

Comments
 (0)
Please sign in to comment.