Created
December 3, 2011 00:28
-
-
Save lbernstein/1425502 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myCallback = function(data) { | |
// Check if not an ISP | |
if (!data.isp) { | |
// Check if detailed company data is available | |
if (data.information_level == ‘detailed’) { | |
// All company firmographic fields are available for use | |
// Take some action based on these details, which may include Account Watch | |
company = data.company_name | |
industry = data.industry | |
} else { | |
// Take some action based on this being an ISP and general fields such as location or audience | |
if (data.audience == "Residential") | |
// Take some action interesting to someone visiting from a residence | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment