Skip to main content
Answered

Tags are missing for the contact object that is returned in Intercom-Ruby

  • August 17, 2021
  • 1 reply
  • 16 views

When I do a find operation on contacts (also happens when doing a search operation) I'm not getting any tags returned from the gem for a contact. I checked this in postman with a rest api call and do receive the tags back. I can also see the tags in intercom. All of the contacts are type="user", active and not archived.

 

Version info

  • intercom-ruby version: 4.1.2
  • Ruby version: 2.6.7

 

Expected behavior

The contact object returned from finding/searching should contain all of tags that are attached to the contact.

 

Actual behavior

No tags are returned for the contact.

 

Steps to reproduce

  1. I retrieve the contact by doing a find: contact = intercom.contacts.find(id: "[contactid]")
  2. I receive a normal and populated contact object
  3. The contact object is missing tags
  4. I've tried with multiple contacts without getting any tags. It does work when doing api calls via curl/postman.

 

Logs

[57] pry(main)> contact.tags

=> nil

Best answer by Eric Fitz

Hey @user59​, can you advise as to which version of our API you're using to make the call? I see you've listed the Ruby versions, but the API version would help us to diagnose. Can you also share an example of a call that doesn't return tags? Are you using the correct access token?

View original
Did this topic help you find an answer to your question?

1 reply

Eric Fitz
Employee
Forum|alt.badge.img+5
  • Employee
  • 1630 replies
  • Answer
  • August 23, 2021

Hey @user59​, can you advise as to which version of our API you're using to make the call? I see you've listed the Ruby versions, but the API version would help us to diagnose. Can you also share an example of a call that doesn't return tags? Are you using the correct access token?


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings