Skip to content

Commit 68f9f33

Browse files
authored
Merge pull request #1 from jmurphy45/jmurphy45-contact-search
Add search contact search capability
2 parents a33b108 + 9fe5a99 commit 68f9f33

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/GetResponseAPI3.class.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,17 @@ public function searchContacts($params = null)
162162
{
163163
return $this->call('search-contacts?' . $this->setParams($params));
164164
}
165+
166+
/**
167+
* search for contacts without saving a search contact record
168+
*
169+
* @param $params
170+
* @return mixed
171+
*/
172+
public function contactSearch($params = array())
173+
{ //print_r(json_decode(json_encode($this->call('search-contacts/contacts', 'POST', $params)), true));
174+
return $this->call('search-contacts/contacts', 'POST', $params);
175+
}
165176

166177
/**
167178
* retrieve segment
@@ -403,4 +414,4 @@ private function setParams($params = array())
403414
return http_build_query($result);
404415
}
405416

406-
}
417+
}

0 commit comments

Comments
 (0)