var axios = require('axios');
var config = {
method: 'get',
url: 'https://api.saino.io/api/apis/email-cleaning/verify-single?email=user@domain.com',
headers: {
'token': '7yq7x1hlydj8hyxccfjo130m7usey6g6dyrdmc61al5411m==/twidh21609584683074'
}
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
<?php
require_once 'HTTP/Request2.php';
$request = new HTTP_Request2();
$request->setUrl('https://testt.gomnp.com/api/apis/email-cleaning/verify-single?email=usr@domain.com');
$request->setMethod(HTTP_Request2::METHOD_GET);
$request->setConfig(array(
'follow_redirects' => TRUE
));
$request->setHeader(array(
'token' => '7yq7x1hlydj8hyxccfjo130msey6g6d5411m==/tw084683074'
));
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/verify-single?email=user@doamin.com",
"method": "GET",
"timeout": 0,
"headers": {
"token": "7yq7x1hlydj8hyxccfjo13rdmc61al5411m==/twi9584683074"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});
import requests
url = "https://api.saino.io/api/apis/email-cleaning/verify-single?email=sahil@sainofirst.com"
payload={}
headers = {
'token': '7yq7x1hlydj8hyxccfjo130m6e8v121609584683074',
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)