iContact Search with email in API2.2

235 Views Asked by At

I have faced an issue while integrating the iContact API 2.2 The problem is i cannot search a contact details with email. the result is null nothing return .

what i did is :

$res = $oiContact->getContactWithEmail("[email protected]");//not working
echo "<pre/>";
print_r($res);

In the API library :

public function getContactWithEmail($Email) {
        // Make the call and return the data
        $this->aSearchParameters['status'] = 'total';
        $this->aSearchParameters['email'] = $Email;
        //$this->aSearchParameters['mytermSearchType'] = 'eq';
        return $this->makeCall("/a/{$this->setAccountId()}/c/{$this->setClientFolderId()}/contacts", 'GET', null, 'contact');
    }

When i try to search with contact Id I got full details of the contact but email is not working how ?

is that not possible with this icontact API.2.2

But i found something similar in C# .NET here

Any solution is available with php ?

1

There are 1 best solutions below

1
On BEST ANSWER

Finally I found solution for this problem.

Also i found 2 more additional methods for iContact API using php. If any one face the same issue or some one will works on iContact api it will help them, click here to view in details.