If you run lead generation on hyper-scale like most of our customers do, you might have wondered how to validate email addresses before piping fake signups or SPAM addresses in your CRM or other automation tools.
Here is one practical example, by using the Hull Processor with the neverbounce.com API.
How to implement it?
Copy and paste the following snippet in your processor, add your Neverbounce API key to it and you are all set:
So let's have a look how the snippet actually works under the covers.
In line 6 we define the API key which is used to authenticate calls against the Neverbounce API. You can find this key under Apps > Custom Integration in your Neverbounce account.
Lines 15 and 16 ensure that we do not trigger unnecessary or repetitive API calls by checking whether the user has an email address at all and we haven't received any neverbounce data before.
Line 17 calls our utility function which wraps the HTTP request to the Neverbounce API. If you want to learn more about performing API calls with the Processor, read this article.
The for..each loop in line 19 ensures that we store the data in an attribute group called neverbounce when we perform the actual call to update Hull data in line 23.
What data will be stored on the user profile?
This snippet will store all available data from Neverbounce on the user, here is an example: