Browse Source

del mailinglists

andre 2 năm trước cách đây
mục cha
commit
c5ceb4c439
1 tập tin đã thay đổi với 14 bổ sung0 xóa
  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
 	 *