|
|
@@ -315,6 +315,20 @@ class KerioWhmcs extends KerioConnectApi {
|
|
|
return $result['result'];
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * Delete mailinglist
|
|
|
+ *
|
|
|
+ * @param string MailinglistID
|
|
|
+ * @return array Result of delete action
|
|
|
+ */
|
|
|
+ public function deleteMailinglist($mlId) {
|
|
|
+ $method = 'MailingLists.remove';
|
|
|
+ $params['mlIds'] = array($mlId);
|
|
|
+ $result = $this->sendRequest($method, $params);
|
|
|
+
|
|
|
+ return $result;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* Get list of mailing lists from a domain
|
|
|
*
|