File tree 1 file changed +9
-0
lines changed
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)
86
86
contact.role = " user"
87
87
intercom.contacts.save(contact)
88
88
89
+ # Archive a contact
90
+ intercom.contacts.archive(contact)
91
+
92
+ # Unarchive a contact
93
+ intercom.contacts.unarchive(contact)
94
+
89
95
# Delete a contact permanently
90
96
intercom.contacts.delete(contact)
91
97
@@ -169,6 +175,9 @@ company = intercom.companies.find(id: "41e66f0313708347cb0000d0")
169
175
company.name = ' Updated company name'
170
176
intercom.companies.save(company)
171
177
178
+ # Delete a company
179
+ intercom.companies.delete(company)
180
+
172
181
# Iterate over all companies
173
182
intercom.companies.all.each {|company | puts %Q( #{ company.name } - #{ company.custom_attributes[" referral_source" ] } ) }
174
183
intercom.companies.all.map {|company | company.name }
You can’t perform that action at this time.
0 commit comments