public function testLookupByEmailWithWebhook()
 {
     global $apikey;
     $new_person = new Services_FullContact_Person($apikey, 'http://requestb.in/153f3ap1');
     $person = $new_person->lookupByEmail('*****@*****.**');
     $this->assertEquals(202, $person->status);
 }
Example #2
0
 public function __construct($api_key)
 {
     parent::__construct($api_key);
     trigger_error("The FullContactAPI class has been deprecated. Please use Services_FullContact instead.", E_USER_NOTICE);
 }
<?php

include_once '../creds.php';
include_once '../Services/FullContact.php';
$fullcontact = new Services_FullContact_Person($apikey);
//do a lookup
$result = $fullcontact->lookupByEmail('*****@*****.**');
//dump our results
echo "<br/>----------------<br/><pre>";
print_r($result);
echo "</pre><br/>----------------<br/>\n";
<?php

include_once '../creds.php';
include_once '../Services/FullContact.php';
$fullcontact = new Services_FullContact_Person($apikey);
$emailMD5 = md5('*****@*****.**');
//do a lookup
$result = $fullcontact->lookupByEmailMD5($emailMD5);
//dump our results
echo "<br/>----------------<br/><pre>";
print_r($result);
echo "</pre><br/>----------------<br/>\n";