Bulk Email Progress / Status
Get Bulk Email Progress Status
GET
https://api.saino.io/api/apis/email-cleaning/bulk-progress
This endpoint allows you to get progress of bulk email cleaning progress.
Query Parameters
Bulk process id which you got from bullk email cleaning api response.
The token provided by saino application.
{
"data": {
"bulk_id": 1002,
"status": "completed",
"percentage": 100,
"download_link": "https://sfeclean.s3.ap-south-1.amazonaws.com/email-cleaner/report/final_verified_8961ea-2017-421a-a919-a1b2183ad86f_test1.csv.csv"
},
"status": "success"
}
{
status: "failed",
error: '' //errors
}
Examples
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://api.saino.io/api/apis/email-cleaning/bulk-progress?bulk_id=95',
'headers': {
'token': '7yq7x1hlydj8hyxccf61al5411m==/twidh969f9584683074',
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
<?php
require_once 'HTTP/Request2.php';
$request = new HTTP_Request2();
$request->setUrl('https://api.saino.io/api/apis/email-cleaning/bulk-progress?bulk_id=95');
$request->setMethod(HTTP_Request2::METHOD_GET);
$request->setConfig(array(
'follow_redirects' => TRUE
));
$request->setHeader(array(
'token' => '7yq7x1hlydj8hyxccfjomc61al5411m==/twid21609584683074'
));
try {
$response = $request->send();
if ($response->getStatus() == 200) {
echo $response->getBody();
}
else {
echo 'Unexpected HTTP status: ' . $response->getStatus() . ' ' .
$response->getReasonPhrase();
}
}
catch(HTTP_Request2_Exception $e) {
echo 'Error: ' . $e->getMessage();
}
var settings = {
"url": "https://api.saino.io/api/apis/email-cleaning/bulk-progress?bulk_id=95",
"method": "GET",
"timeout": 0,
"headers": {
"token": "7yq7x1hlydj8hyxccfjo130mc61al5411m==/twi46e8v584683074",
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});
import requests
url = "https://api.saino.io/api/apis/email-cleaning/bulk-progress?bulk_id=95"
payload={}
headers = {
'token': '7yq7x1hlydj8hyxccfjordmc61al8v121609584683074',
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)