You are here

function CampaignMonitor::subscriberAddAndResubscribeWithCustomFields in Campaign Monitor 5.2

Same name and namespace in other branches
  1. 6.3 lib/CMBase.php \CampaignMonitor::subscriberAddAndResubscribeWithCustomFields()
  2. 6.2 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 922

Class

CampaignMonitor

Code

function subscriberAddAndResubscribeWithCustomFields($email, $name, $fields, $list_id = null) {
  return $this
    ->subscriberAddWithCustomFields($email, $name, $fields, $list_id, true);
}