Skip to content

Commit

Permalink
Merge pull request #36 from phoenix-bjoern/master
Browse files Browse the repository at this point in the history
Support for blacklist
  • Loading branch information
tim-bezhashvyly authored Aug 2, 2017
2 parents c67a195 + 9e13abf commit e9c540c
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 @@ -777,6 +777,19 @@ public function createCustomField($name, $type)
return $this->send(HttpClient::POST, 'field', array('name'=>$name, 'application_type'=>$type));
}

/**
* Adds list of emails and domains to blacklist
*
* @param array $emails
* @param array $domains
*
* @return Response
*/
public function addBlacklistEntries(array $emails = array(), array $domains = array())
{
return $this->send(HttpClient::POST, 'blacklist', array('emails' => $emails, 'domains' => $domains));
}

/**
* @param string $method
* @param string $uri
Expand Down

0 comments on commit e9c540c

Please sign in to comment.