|
@@ -322,7 +322,7 @@ class KerioWhmcs extends KerioConnectApi {
|
|
|
* @param array fields to set
|
|
* @param array fields to set
|
|
|
* @return array Result of delete action
|
|
* @return array Result of delete action
|
|
|
*/
|
|
*/
|
|
|
- public function modifyMailinglist($mlId,$fields) {
|
|
|
|
|
|
|
+ public function modifyMailinglist($fields,$mlId) {
|
|
|
$method = 'MailingLists.set';
|
|
$method = 'MailingLists.set';
|
|
|
$params['mlIds'] = array($mlId);
|
|
$params['mlIds'] = array($mlId);
|
|
|
$params['pattern'] = $fields;
|
|
$params['pattern'] = $fields;
|
|
@@ -387,6 +387,25 @@ class KerioWhmcs extends KerioConnectApi {
|
|
|
return $result;
|
|
return $result;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Remove users from mailing list
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param array List of fields of users to ba added
|
|
|
|
|
+ * @param string Mailing list Id
|
|
|
|
|
+ *
|
|
|
|
|
+ * @return array List of mailing lists
|
|
|
|
|
+ */
|
|
|
|
|
+ public function delMlUserList($members, $mlId) {
|
|
|
|
|
+ $method = 'MailingLists.removeMlUserList';
|
|
|
|
|
+
|
|
|
|
|
+ $params['members'] = $members;
|
|
|
|
|
+ $params['mlId'] = $mlId;
|
|
|
|
|
+
|
|
|
|
|
+ $result = $this->sendRequest($method, $params);
|
|
|
|
|
+
|
|
|
|
|
+ return $result;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* Get list of resources from a domain
|
|
* Get list of resources from a domain
|
|
|
*
|
|
*
|