<script> let verifyBeeSettings = { 'apiKey':'[YOUR API KEY]', 'allowInvalidSubmit':false, 'allowCatchAllSubmit':true,
'blockHosts':[] //array of blocked hosts ex. ['gmail','yahoo'] } </script> <script src="https://app.verifybee.io/public/js/verify-widget.js"></script> /////////////////////// Notes : /////////////////////// *Form should contain... <input type="email" name="anything" id="anything"/> or <input type="anything" name="email" id="anything"/> or <input type="anything" name="anything" id="email"/>
//initiliaze php curl
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://app.verifybee.io/api/v1.3/verify/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "email=[EMAIL TO VERIFY]",
CURLOPT_HTTPHEADER => array(
"content-type: application/x-www-form-urlencoded",
"Vb-Token: [YOUR API KEY]"
)
));
$result = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
$getResponse = json_decode($result);
print_r($getResponse);
### import requests import requests #### post using requests REST_HEADERS = {'Accept': 'application/json','Vb-Token':'[YOUR API TOKEN]'} postData = {} postData['email'] = '[EMAIL TO VERIFY]' getRes = requests.post('https://app.verifybee.io/api/v1.3/verify/', data=postData, headers=REST_HEADERS) getResInJSON = getRes.json() print(getResInJSON)
//import requetify var requestify = require('requestify'); //send post requestify.request('https://app.verifybee.io/api/v1.3/verify/', { method: 'POST', body: { email: '[EMAIL TO VERIFY]' }, headers: { 'Vb-Token': '[YOUR API KEY]' }, dataType: 'json', }).then(function(response) { var getRes = response.getBody(); console.log(getRes); }).catch(function(err){ console.log(err); });
//set postdata var postData = {}; postData.email = '[EMAIL TO VERIFY]'; postData.vbToken = '[YOUR API KEY]'; //make ajax call $.ajax({ type: "POST", headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, url: "https://app.verifybee.io/api/v1.3/verify/", data: postData, success: function(resData) { console.log(resData); }, error: function (err) { console.log(err); } });