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() {
    /* ... */
});


If you any issues getting set up with Email Warrant, please contact [email protected]. We are always happy to help!

Last updated

Was this helpful?