diff --git a/src/GetResponseAPI3.class.php b/src/GetResponseAPI3.class.php index 2782e2f..e39589d 100644 --- a/src/GetResponseAPI3.class.php +++ b/src/GetResponseAPI3.class.php @@ -162,6 +162,17 @@ public function searchContacts($params = null) { return $this->call('search-contacts?' . $this->setParams($params)); } + + /** + * search for contacts without saving a search contact record + * + * @param $params + * @return mixed + */ + public function contactSearch($params = array()) + { //print_r(json_decode(json_encode($this->call('search-contacts/contacts', 'POST', $params)), true)); + return $this->call('search-contacts/contacts', 'POST', $params); + } /** * retrieve segment @@ -403,4 +414,4 @@ private function setParams($params = array()) return http_build_query($result); } -} \ No newline at end of file +}