how to delete secondary email from a Contact in Hubspot CRM via a API
- this solution uses V1 endpoint because V3 has no such feature (literally no way to delete secondary contact via V3 Hubspot CRM API, and no setting
hs_additional_emails
to empty will not work) - uses endpoint https://legacydocs.hubspot.com/docs/methods/contacts/delete-a-secondary-email-address
- this solution is using "Hubspot Private API token" and API key as those will not work after 30th Nov 2022 source
- only dependancy is HTTParty gem