<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);
----------------------------------
{ "status": "success", "data": { "deliverable": 1, "catchAll": 0, "validFormat": 1 } }
----------------------------------
{ "status": "success", "data": { "deliverable": 0, "catchAll": 0, "validFormat": 1 } }
----------------------------------
{ "status": "success", "data": { "deliverable": 0, "catchAll": 0, "validFormat": 0 } }
----------------------------------
{ "status": "error", "msg": "No email provided!" }
----------------------------------
{ "status": "error", "msg": "Dont' have enough credits!" }
----------------------------------
{ "status": "error", "msg": "No Vb-Token provided!" }
----------------------------------
{ "status": "error", "msg": "Invalid Vb-Token provided!" }
### 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)
----------------------------------
{'status': 'success', 'data': {'deliverable': True, 'catchAll': False, 'validFormat': True}}
----------------------------------
{'status': 'success', 'data': {'deliverable': False, 'catchAll': False, 'validFormat': True}}
----------------------------------
{'status': 'success', 'data': {'deliverable': False, 'catchAll': False, 'validFormat': False}}
----------------------------------
{ "status": "error", "msg": "No email provided!" }
----------------------------------
{ "status": "error", "msg": "Dont' have enough credits!" }
----------------------------------
{ "status": "error", "msg": "No Vb-Token provided!" }
----------------------------------
{ "status": "error", "msg": "Invalid Vb-Token provided!" }
//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); });
----------------------------------
{ "status": "success", "data": { "deliverable": true, "catchAll": false, "validFormat": true } }
----------------------------------
{ "status": "success", "data": { "deliverable": false, "catchAll": false, "validFormat": true } }
----------------------------------
{ "status": "success", "data": { "deliverable": false, "catchAll": false, "validFormat": false } }
----------------------------------
{ "status": "error", "msg": "No email provided!" }
----------------------------------
{ "status": "error", "msg": "Dont' have enough credits!" }
----------------------------------
{ "status": "error", "msg": "No Vb-Token provided!" }
----------------------------------
{ "status": "error", "msg": "Invalid Vb-Token provided!" }
//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); } });
----------------------------------
{ "status": "success", "data": { "deliverable": true, "catchAll": false, "validFormat": true } }
----------------------------------
{ "status": "success", "data": { "deliverable": false, "catchAll": false, "validFormat": true } }
----------------------------------
{ "status": "success", "data": { "deliverable": false, "catchAll": false, "validFormat": false } }
----------------------------------
{ "status": "error", "msg": "No email provided!" }
----------------------------------
{ "status": "error", "msg": "Dont' have enough credits!" }
----------------------------------
{ "status": "error", "msg": "No Vb-Token provided!" }
----------------------------------
{ "status": "error", "msg": "Invalid Vb-Token provided!" }