Skip to content

Instantly share code, notes, and snippets.

@lbernstein
Created November 11, 2011 23:12
Show Gist options
  • Select an option

  • Save lbernstein/1359624 to your computer and use it in GitHub Desktop.

Select an option

Save lbernstein/1359624 to your computer and use it in GitHub Desktop.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script>
jQuery.ajax({
url: 'http://api.demandbase.com/api/v2/ip.json?key=<Your_Demandbase_Key>',
dataType: 'json', // not 'jsonp'; this triggers CORS
//data: data, // optional params
success: function(result) {
// response handler for IP API call
industry = result.industry;
},
error: function(xhr, textStatus, errorThrown) {
// optional error handler
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment