Skip to content

Instantly share code, notes, and snippets.

@agronom81
Last active January 4, 2019 05:49
Show Gist options
  • Save agronom81/7d071e9f0a6e7bfdc7c63f646d363513 to your computer and use it in GitHub Desktop.
Save agronom81/7d071e9f0a6e7bfdc7c63f646d363513 to your computer and use it in GitHub Desktop.
Briteverify with public API KEY
var mail = $('input[type=email]').val();
//username is public API Key
var url = "https://bpi.briteverify.com/emails.json?address="+mail+"&username=772454564564564564564563";
$.ajax({
url: url,
dataType: "jsonp",
success: function(data){
var status = data.status;
$('input[type=email]').addClass(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