We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bab09db commit 215c97eCopy full SHA for 215c97e
1 file changed
README.md
@@ -86,6 +86,12 @@ intercom.contacts.save(contact)
86
contact.role = "user"
87
intercom.contacts.save(contact)
88
89
+# Archive a contact
90
+intercom.contacts.archive(contact)
91
+
92
+# Unarchive a contact
93
+intercom.contacts.unarchive(contact)
94
95
# Delete a contact permanently
96
intercom.contacts.delete(contact)
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 }
0 commit comments