Skip to content

Commit

Permalink
Merge pull request #28 from webarchitect609/feature/check_contact_in_…
Browse files Browse the repository at this point in the history
…list

Add contact in list checking method
  • Loading branch information
tim-bezhashvyly authored Nov 22, 2016
2 parents 3e36023 + b6d556c commit 5903394
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Snowcap/Emarsys/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 5903394

Please sign in to comment.