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
The showListMemberships param is set to false by default by HubSpot when getting contacts by a batch of email addresses. My use case requires getting contact lists based on an array of email addresses. However, when I call Hubspot::Contact.find_by_email([email1, email2]), no contact list data is returned because we are not setting the showListMemberships param.
Would it be possible to add a showListMemberships parameter to the method so we can specify if we need lists or not?
Otherwise, I need to call Hubspot::Connection.get( ... ) directly. I would prefer to use the Hubspot::Contact.find_by_email method of course.
Thanks!
The text was updated successfully, but these errors were encountered:
dventulieri
changed the title
Set the showListMemberships to true when calling Contact.find_by_email with an array of emails.
Add a showListMemberships param to Hubspot::Contact.find_by_emailJan 28, 2019
dventulieri
changed the title
Add a showListMemberships param to Hubspot::Contact.find_by_email
Add a showListMemberships param to Hubspot::Contact.find_by_email
Jan 28, 2019
The
showListMemberships
param is set tofalse
by default by HubSpot when getting contacts by a batch of email addresses. My use case requires getting contact lists based on an array of email addresses. However, when I callHubspot::Contact.find_by_email([email1, email2])
, no contact list data is returned because we are not setting theshowListMemberships
param.We can get around this by adding
showListMemberships: true
to the parameters on the following line: https://github.com/adimichele/hubspot-ruby/blob/d9a369eb2aacda5a87b7de46942dec3e774e191b/lib/hubspot/contact.rb#L113i.e. :
Would it be possible to add a
showListMemberships
parameter to the method so we can specify if we need lists or not?Otherwise, I need to call
Hubspot::Connection.get( ... )
directly. I would prefer to use theHubspot::Contact.find_by_email
method of course.Thanks!
The text was updated successfully, but these errors were encountered: