Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions src/Snowcap/Emarsys/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,28 @@ public function checkContactInList($contactId, $listId)
return $this->send(HttpClient::GET, sprintf('contactlist/%s/contacts/%s', $listId, $contactId));
}

/**
* Generates a list of existing contacts and errors indexed by the specified key identifier.
*
* Example:
*
* $data = array(
* 'key_id' => 3, // Contact element used as a key to select the contacts.
* // To use the internalID, pass "id" to the "keyId" parameter.
* 'external_ids' => array('[email protected]', '[email protected]'), // Filters the contacts by the values of the specified key field (key_id).
* 'get_multiple_ids' => 1, // boolean - Lists all internal contact identifiers if the request matches multiple external identifiers.
* );
*
* @param array $data
* @return Response
* @throws ClientException
* @throws ServerException
*/
public function checkIds(array $data)
{
return $this->send(HttpClient::POST, 'contact/checkids', $data);
}

/**
* Returns a list of emails.
*
Expand Down