Skip to content

Commit

Permalink
Added delete single contact to close #26
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamiewarb committed Nov 18, 2016
1 parent 281c691 commit 675e711
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Snowcap/Emarsys/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,17 @@ public function updateContact(array $data)
return $this->send(HttpClient::PUT, 'contact', $this->mapFieldsToIds($data));
}

/**
* Deletes a single contact/recipient, identified by an external ID.
*
* @param array $data
* @return Response
*/
public function deleteContact(array $data)
{
return $this->send(HttpClient::POST, 'contact/delete', $data);
}

/**
* Returns the internal ID of a contact specified by its external ID.
*
Expand Down

0 comments on commit 675e711

Please sign in to comment.