Skip to content

Instantly share code, notes, and snippets.

@lbernstein
Created December 3, 2011 00:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lbernstein/1425502 to your computer and use it in GitHub Desktop.
Save lbernstein/1425502 to your computer and use it in GitHub Desktop.
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