ソースを参照

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
 	 *