File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,12 @@ intercom.contacts.save(contact)
8686contact.role = " user"
8787intercom.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
9096intercom.contacts.delete(contact)
9197
@@ -169,6 +175,9 @@ company = intercom.companies.find(id: "41e66f0313708347cb0000d0")
169175company.name = ' Updated company name'
170176intercom.companies.save(company)
171177
178+ # Delete a company
179+ intercom.companies.delete(company)
180+
172181# Iterate over all companies
173182intercom.companies.all.each {|company | puts %Q( #{ company.name } - #{ company.custom_attributes[" referral_source" ] } ) }
174183intercom.companies.all.map {|company | company.name }
You can’t perform that action at this time.
0 commit comments