Advertisement
Guest User

Untitled

a guest
Sep 27th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. require 'XverifyClientAPI.php';
  2. $api_key = 'myapikey'; // Your API Key
  3. $options = array();
  4. $options['type'] = 'json'; // API response type
  5. $options['domain'] = 'addeddomainname';// Reruired your domain name
  6. $client = new XverifyClientAPI($api_key,$options);
  7.  
  8. $data = array();
  9. $data['email'] = 'test@xverify.com';
  10. $client->verify('email',$data);
  11. echo '<pre>';
  12. echo "valid: ", var_dump($client->is_valid()), "n";
  13. echo "status: ", $client->status(), "n";
  14. print_r($client->getReponseAsObject());// Convert the json response into object
  15.  
  16. stdClass Object
  17. (
  18. [syntax] => 1
  19. [handle] => test
  20. [domain] => xverify.com
  21. [catch_all] => unknown
  22. [address] => test@xverify.com
  23. [error] => 0
  24. [status] => bad_request
  25. [responsecode] => 504
  26. [message] => Reach the API Limit
  27. [duration] => 0.013515949249268
  28. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement