diff --git a/README.md b/README.md index 6ecb273..525a5c6 100644 --- a/README.md +++ b/README.md @@ -26,11 +26,27 @@ $listid = 23; $mobileNumber = "20111222"; $mobilePrefix = "45"; -$result = $parser->ResubscribeContact(listid, false, $mobileNumber, $mobilePrefix); +$result = $parser->ResubscribeContact($listid, false, $mobileNumber, $mobilePrefix); ```

## Changelog: + +### _Differences between **v1.2.2** and **v1.2.3**_ +#### Method definition changed: + +* **ResubscribeContact** +> *Previous:* +> ```php +> public function ResubscribeContact($listid = false, $emailaddress = false, $mobileNumber = false, $mobilePrefix = false, $add_to_autoresponders = false) +>``` +> *Now:* +> ```php +> public function ResubscribeContact($listid = false, $emailaddress = false, $mobileNumber = false, $mobilePrefix = false, $add_to_autoresponders = false, $contactFields = array()) +>``` +> * **Added:** $contactFields. +

+ ### _Differences between **v1.2.1** and **v1.2.2**_ #### New methods: diff --git a/src/ApiParser.class.php b/src/ApiParser.class.php index 2106d74..c8ce77b 100644 --- a/src/ApiParser.class.php +++ b/src/ApiParser.class.php @@ -9,6 +9,7 @@ class ApiParser var $settings = array (); + /** Production **/ var $URL = 'https://api.mailmailmail.net/v1.1'; @@ -455,7 +456,7 @@ public function AddSubscriberToList($listid = false, $emailaddress = false, $mob return self::REQUEST_FAILED; } - public function ResubscribeContact($listid = false, $emailaddress = false, $mobileNumber = false, $mobilePrefix = false, $add_to_autoresponders = false) + public function ResubscribeContact($listid = false, $emailaddress = false, $mobileNumber = false, $mobilePrefix = false, $add_to_autoresponders = false, $contactFields = array()) { $url = $this->URL . '/Subscribers/ResubscribeContact'; if($listid && ($emailaddress || ($mobileNumber && $mobilePrefix))) @@ -465,7 +466,8 @@ public function ResubscribeContact($listid = false, $emailaddress = false, $mobi 'emailaddress' => $emailaddress, 'mobileNumber' => $mobileNumber, 'mobilePrefix' => $mobilePrefix, - 'add_to_autoresponders' => $add_to_autoresponders + 'add_to_autoresponders' => $add_to_autoresponders, + 'contactFields' => $contactFields ); return $this->MakePostRequest($url, $params); }