如何使用带infusionsoft gem的电子邮件地址获取联系人ID
答
selected_fields = %w(:id)
results = Infusionsoft.contact_find_by_email("[email protected]", selected_fields)
从这个API调用的结果将是:
[{"id" => "9999"}]
见https://developer.infusionsoft.com/docs/xml-rpc/#contact-search-for-a-contact-by-an-email-address