Last active
January 4, 2019 05:49
-
-
Save agronom81/7d071e9f0a6e7bfdc7c63f646d363513 to your computer and use it in GitHub Desktop.
Briteverify with public API KEY
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 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