API Cách dùng

PHP
<?php
$ch 
curl_init();
$url "https://mailvengine.com/mve/check/Your_API_Key/langwebit@gmail.com";
curl_setopt($chCURLOPT_URL$url);
curl_setopt($chCURLOPT_CUSTOMREQUEST"GET");
curl_setopt($chCURLOPT_SSL_VERIFYPEERfalse);
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
curl_setopt($chCURLOPT_HEADERfalse);

curl_setopt($chCURLOPT_HTTPHEADER, array('Content-Type:application/json'));

$result curl_exec($ch);
$response json_decode($result);

echo 
"Email: ".$response->verify_email;
echo 
"Email: ".$response->verify_status;
echo 
"Email: ".$response->verify_email;
echo 
"Email: ".$response->verify_username;
echo 
"Email: ".$response->verify_domain;
echo 
"Email: ".$response->verify_format_valid;
echo 
"Email: ".$response->verify_smtp_check;
echo 
"Email: ".$response->verify_mx_found;
echo 
"Email: ".$response->verify_api_desc;
 
echo 
"<pre>"print_r($result);

curl_close($ch);
?> 
Jquery Ajax GET Request
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script language="javascript">
$(document).ready(function () {
  $("#checkEmail").click(function () {
  var email = $('#email').val();
  var api_key = "You API Key";
   $.ajax({
    type: "GET",
    url: "https://mailvengine.com/mve/check/"+api_key+"/"+email,
    cache: false,
    beforeSend: function () {},
    success: function (response) {
      if(response.verify_status==1){
        $("#status").html("Valid email");
      }
      else{
        $("#status").html("Invalid email");
      }
    },
    error: function (data) {}
  });
  });
});
</script>

<label>Email</label>
<input type="email" id="email" >
<button type="button" id="checkEmail">Click Check!</button> 
<span id="status"></span>
Jquery Ajax POST Request
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script language="javascript">
$(document).ready(function () {  
    $("#checkEmail").click(function () {
      var email = $('#email').val();
      var api_key = "Your API Key";
      var post_data = { "api_key": api_key, "email": email };
       $.ajax({
        type: "POST",
        url: "https://mailvengine.com/mve/check/email",
        cache: false,
        data: post_data,
        beforeSend: function () {},
        success: function (response) {
          if(response.verify_status==1){
            $("#status").html("Valid email");
          }
          else{
            $("#status").html("Invalid email");
          }
        },
        error: function (data) {}
      });
    });
});
</script>

<label>Email</label>
<input type="email" id="email" >
<button type="button" id="checkEmail">Click Check!</button> 
<span id="status"></span>