You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Matthew Murray edited this page Jan 30, 2020
·
2 revisions
Version 4 of the intercom Ruby SDK contains a number of breaking changes. It has been designed to work with Intercom API version 2.0 and above. See Changelog and API v2.0 documentation for more detail.
This guide will help you update your integration so that it keeps working as expected after you upgrade to v4.
Breaking changes
Deprecated classes
Deprecated Class
Replacement Class
Notes
User
Contact
Users & leads (formerly contacts) have been consolidated into one high level Contact resource.
Customer
Contact
Contact replaces the Customer resource and inherits all the functionality of that class.
Note that the old User and Contact resources will still work in this version of the SDK with API versions 1.4 and below. Contact has been replaced with Lead and User is unchanged.
New and replaced methods
This version of the SDK introduces the concept of nested resources, allowing you to manipulate a child resource through instance methods on its parent.
Operation
Old method
New/Replacement Method
Returns
Create a note on a contact.
intercom.notes.create
contact.create_note(body: "foo")
Note object.
List notes for a contact.
intercom.notes.find_all
contact.notes
CollectionProxy object which responds to [], .each & .map.
Add a tag to a contact.
intercom.tags.tag
contact.add_tag(id: tag.id)
Tag object.
Remove a tag from a contact.
intercom.tags.untag
contact.remove_tag(id: tag.id)
Tag object.
List tags for a contact.
-
contact.tags
CollectionProxy object which responds to [], .each & .map.