Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'XverifyClientAPI.php';
- $api_key = 'myapikey'; // Your API Key
- $options = array();
- $options['type'] = 'json'; // API response type
- $options['domain'] = 'addeddomainname';// Reruired your domain name
- $client = new XverifyClientAPI($api_key,$options);
- $data = array();
- $data['email'] = 'test@xverify.com';
- $client->verify('email',$data);
- echo '<pre>';
- echo "valid: ", var_dump($client->is_valid()), "n";
- echo "status: ", $client->status(), "n";
- print_r($client->getReponseAsObject());// Convert the json response into object
- stdClass Object
- (
- [syntax] => 1
- [handle] => test
- [domain] => xverify.com
- [catch_all] => unknown
- [address] => test@xverify.com
- [error] => 0
- [status] => bad_request
- [responsecode] => 504
- [message] => Reach the API Limit
- [duration] => 0.013515949249268
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement