瀏覽代碼

del mailinglists

andre 2 年之前
父節點
當前提交
c5ceb4c439
共有 1 個文件被更改,包括 14 次插入0 次删除
  1. 14 0
      api/KerioWhmcs.php

+ 14 - 0
api/KerioWhmcs.php

@@ -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
 	 *