Skip to content

Instantly share code, notes, and snippets.

@biancalpadilla
Last active February 15, 2019 04:03
Show Gist options
  • Save biancalpadilla/23667b7b819798fd0dffa66801bf74c6 to your computer and use it in GitHub Desktop.
Save biancalpadilla/23667b7b819798fd0dffa66801bf74c6 to your computer and use it in GitHub Desktop.
var mail = "test@test.com";
//username is public API Key
var url = "https://bpi.briteverify.com/emails.json?address="+mail+"&username=";
$.ajax({
url: url,
dataType: "jsonp",
success: function(data){
var status = data.status;
if(status === 'valid') {
console.log('success')
} else {
console.log('error')
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment