JavaScript + JQuery

How to use Email Warrant with JavaScript + JQuery.

Below is an example of how to call the Email Warrant API using JavaScript + JQuery:

// Request (GET https://api.emailwarrant.com/v1/verify.php)
jQuery.ajax({
url: "https://api.emailwarrant.com/v1/verify.php",
type: "GET",
data: {
"userID": "<USERID>",
"apiKey": "<APIKEY>",
"domain": "<DOMAIN>",
},
})
.done(function(data, textStatus, jqXHR) {
console.log("HTTP Request Succeeded: " + jqXHR.status);
console.log(data);
})
.fail(function(jqXHR, textStatus, errorThrown) {
console.log("HTTP Request Failed");
})
.always(function() {
/* ... */
});

Call the Email Warrant API using Javascript in the browser will give away your API key and allow other to make API calls as you.

If you any issues getting set up with Email Warrant, please contact support@emailwarrant.com. We are always happy to help!