Skip to content

Instantly share code, notes, and snippets.

@leopathu
leopathu / bulk-verify.php
Last active November 10, 2019 18:19
Bulk Verify API
<?php
$api_key = API_KEY; // find your API key here: https://app.deliverbility.com/realtime/api
$file_name = 'leo.txt'; // TXT or CSV files are accepted
$file_name_with_full_path = drupal_realpath('/home/leopathu/foldername/leo.txt'); // absolute path to your file you want to upload. Eg. '/var/www/vhosts/domain.com/upload/'.$file_name
$target_url = 'https://app.deliverbility.com/api/v2/bulk-verify'; // Deliverbility upload API url, do not change
if (function_exists('curl_file_create')) { // php 5.6+
$cFile = curl_file_create($file_name_with_full_path);
} else {
$cFile = '@' . $file_name_with_full_path;
const https = require('https');
// !!!PUT YOUR API KEY HERE!!!
var api_key="YOUR_API_KEY";
var email = 'leopathu@gmail.com'; //process.argv[2];
var url = "https://app.deliverbility.com/api/verify?k="+api_key+"&"+"email="+email;
var key = ""; var ip = ""; var campaign = ""; var user_agent = ""; var strictness = 0; var failure_redirect = ""; var success_redirect = ""; function executeCheck(){ var http = new XMLHttpRequest(); var url = "https://app.cloakerly.com/v1/integration/check/"+key+"/"+ip+"/"+campaign; var params = "user_agent="+user_agent+"&strictness="+strictness; http.open("POST", url, true); //Send the proper header information along with the request http.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); http.onreadystatechange = function() {//Call a function when the state changes. if(http.readyState == 4 && http.status == 200) { checkResponse(http.responseText); } } http.send(params); } function getIP(key){ var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { var data = JSON.parse(this.responseText); ip = data.ip; user_agent = data.user_agent; executeCheck(key,ip,campaign); } }; xhttp.open("GET", "https://app.cloakerly.com/v1/integr
<?php
namespace Cloakerly;
class CloakerlyChecker {
private $key = null;
private $strictness = 0;
private $user_agent = false;
private $failure_redirect = null;
private $success_redirect = null;
private $campaign = null;
curl -i -H "Accept: application/json" "https://app.deliverbility.com/api/verify?k={your-key}&e={email}"
use LWP;
# The url for the service
$ApiUrl = "https://app.deliverbility.com/api/verify";
# The format of the full query string
$QueryFormatString = "%s?e=%s&k=%s";
print "Enter Email:\n";
$readLine = <STDIN>;
# Import the module for handling the http request
import urllib.request
# The url for the service
ApiUrl = "https://app.deliverbility.com/api/verify"
# The format of the full query string
QueryFormatString = "{0}?e={1}&k={2}"
# The API key provided for your account goes here
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;
import java.util.logging.Level;
import java.util.logging.Logger;
public class Program
Imports System.IO
Imports System.Net
''' <summary>
''' The program.
''' </summary>
Friend Class Program
#Region "Constants"
#region Usings
using System;
using System.IO;
using System.Net;
#endregion
/// <summary>
/// The program.