function CampaignMonitor::subscriberAddAndResubscribeWithCustomFields in Campaign Monitor 6.2
Same name and namespace in other branches
- 5.2 lib/CMBase.php \CampaignMonitor::subscriberAddAndResubscribeWithCustomFields()
- 6.3 lib/CMBase.php \CampaignMonitor::subscriberAddAndResubscribeWithCustomFields()
*
Parameters
string $email Email address.: * @param string $name User's name. * @param mixed $fields Should only be a single-dimension array of key-value pairs. * @param int $list_id (Optional) A valid List ID to check against. If not given, the default class property is used. * @param boolean $resubscribe If true, does an equivalent 'AndResubscribe' API method. * @return mixed A parsed response from the server, or null if something failed. * @see http://www.campaignmonitor.com/api/Subscriber.AddAndResubscribeWithCusto...
File
- lib/
CMBase.php, line 809
Class
- CampaignMonitor
- The new CampaignMonitor class that now extends from CMBase. This should be backwards compatible with the original (PHP5) version.
Code
function subscriberAddAndResubscribeWithCustomFields($email, $name, $fields, $list_id = null) {
return $this
->subscriberAddWithCustomFields($email, $name, $fields, $list_id, true);
}