diff --git a/src/Snowcap/Emarsys/Client.php b/src/Snowcap/Emarsys/Client.php index 1c11b11..a0e2f92 100644 --- a/src/Snowcap/Emarsys/Client.php +++ b/src/Snowcap/Emarsys/Client.php @@ -417,6 +417,19 @@ public function getContactsFromContactList($listId, array $data) return $this->send(HttpClient::GET, sprintf('contactlist/%s/contacts', $listId), $data); } + /** + * Checks whether a specific contact is included in the defined contact list. + * + * @param int $contactId + * @param int $listId + * @return Response + * @link http://documentation.emarsys.com/resource/developers/endpoints/contacts/check-a-contact-in-a-contact-list/ + */ + public function checkContactInList($contactId, $listId) + { + return $this->send(HttpClient::GET, sprintf('contactlist/%s/contacts/%s', $listId, $contactId)); + } + /** * Returns a list of emails. *