在 Intercom ruby gem 中按自定义属性搜索

Search by custom attribute in Intercom ruby gem

我正在使用对讲机 ruby gem。我的 company 回复之一如下所示:

 @company_id="648",
 @created_at=1578937499,
 @custom_attributes=
  {"cname"=>nil,
   "contacts"=>1,
   "ein"=>"xyz123"
  }

为了通过 company_id 进行搜索,我可以这样做:intercom.companies.find(company_id: 648)(参考:https://github.com/intercom/intercom-ruby#search-for-customers)。但是,我想按自定义属性之一 ein 进行搜索。可以吗?

我认为目前不可能

从最新的 API(现在是 2.3 版)开始,只能搜索联系人 (users/leads) https://developers.intercom.com/intercom-api-reference/reference#search-for-contacts

似乎只能通过

检索公司