src/XQueue/Maileon/API/Blacklists/BlacklistsService.php
public function addEntriesToBlacklist($id, $entries, $importName = null)
    {
        if ($importName == null) {
            $importName = "phpclient_import_" . uniqid();
        }
        $action = new AddEntriesAction();
        $action->importName = $importName;
        $action->entries = $entries;
        return $this->post("blacklists/" . $id . "/actions", $action->toXMLString());
    }
public function addEntriesToBlacklist($id, $entries, $importName = null)
    {
        if ($importName == null) {
            $importName = "phpclient_import_" . uniqid();
        }
        $action = new AddEntriesAction();
        $action->importName = $importName;
        $action->entries = $entries;
        return $this->post("blacklists/" . $id . "/actions", $action->toXMLString());
    }
Adds a number of expressions to a blacklist.

@param integer $id
the id of the blacklist to add the entries to
@param string[] $entries
the blacklist entries to add to the blacklist
@param string $importName
a unique name for the import that will be displayed in Maileon's web user interface. If this is null, a unique name will be generated.
@return \em com_maileon_api_MaileonAPIResult
the result object of the API call.
@throws com_maileon_api_MaileonAPIException
if there was a connection problem or a server error occurred